From 4a7a0126f2d55915462bb7c704697b4851b4d436 Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Thu, 2 Jun 2022 11:29:32 +0200 Subject: [PATCH] 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. --- buildSrc/gradle.properties | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/buildSrc/gradle.properties b/buildSrc/gradle.properties index 02e820ea402..adb248569e7 100644 --- a/buildSrc/gradle.properties +++ b/buildSrc/gradle.properties @@ -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 \ No newline at end of file +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