Moving kotlin project persistent dir back into $OUT_DIR with Kotlin 2.0.0
to follow the new setting from https://github.com/JetBrains/kotlin/commit/070de9cc851eb36f66211afd619ad10c8f61bd37
Bug: 317932304
Test: killall java; git clean -fdx; ./gradlew :core:core:compileReleaseKotlin --rerun-tasks; ls ../../out/kotlin-project-persistent-dir/ && git clean -ndx \
# and see that ./.kotlin doesn't exist but ../../out/kotlin-project-persistent-dir/sessions does
Change-Id: I73d3f0939976ed505c561198c95db2596e0d80ee
diff --git a/gradlew b/gradlew
index 11901b7e..1b875df 100755
--- a/gradlew
+++ b/gradlew
@@ -410,6 +410,9 @@
RETURN_VALUE=0
set -- "$@" -Dorg.gradle.projectcachedir="$OUT_DIR/gradle-project-cache"
+ KOTLIN_PROJECT_PERSISTENT_DIR="$OUT_DIR/kotlin-project-persistent-dir"
+ mkdir -p "$KOTLIN_PROJECT_PERSISTENT_DIR"
+ set -- "$@" -Pkotlin.project.persistent.dir="$KOTLIN_PROJECT_PERSISTENT_DIR"
# Disabled in Studio until these errors become shown (b/268380971) or computed more quickly (https://github.com/gradle/gradle/issues/23272)
if [[ " ${@} " =~ " --dependency-verification=" ]]; then
VERIFICATION_ARGUMENT="" # already specified by caller