Decrease Kotlin daemon autoshutdown timeout to 30 sec

Daemon spawned via buildSrc compilation is incompatible with other
compilations in Kotlin repo, as they use custom compiler classpath.

To reduce memory consumption (especially on CI), idle autoshutdown
timeout was reduced from default 2 hours to 30 seconds.
This commit is contained in:
Yahor Berdnikau
2022-06-02 11:29:32 +02:00
committed by Space
parent e9a231e97e
commit 4a7a0126f2
+5 -2
View File
@@ -1,4 +1,7 @@
org.gradle.jvmargs=-Duser.country=US -Dfile.encoding=UTF-8
# Decreasing Kotlin Daemon autoshutdown timeout to 30 seconds
# Currently all other modules in Kotlin repo are using custom compiler classpath
# making daemon spawned in 'buildSrc' compilation incompatible with other compilations
org.gradle.jvmargs=-Duser.country=US -Dfile.encoding=UTF-8 -Dkotlin.daemon.options=autoshutdownIdleSeconds=30
# Should be the same as in the main project to avoid spawning second daemon
kotlin.daemon.jvmargs=-Xmx2200m
@@ -11,4 +14,4 @@ kotlin.build.gradlePlugin.version=0.0.38
# Please keep it in sync with root gradle.properties.
# It's currently needed for proper configuration cache work, the reason will be investigated later
org.gradle.java.installations.fromEnv=JDK_16,JDK_17,JDK_18,JDK_9,JDK_10,JDK_11,JDK_15,JDK_16_0,JDK_17_0
org.gradle.java.installations.fromEnv=JDK_16,JDK_17,JDK_18,JDK_9,JDK_10,JDK_11,JDK_15,JDK_16_0,JDK_17_0