From 24238226156e551103f5e2167cba7be74bf575bd Mon Sep 17 00:00:00 2001 From: Goooler Date: Sun, 24 Jul 2022 09:53:47 +0800 Subject: [PATCH] Enable Kotlin's new incremental build flag --- gradle.properties | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 7affea4b6..a5127fa39 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,7 @@ kotlin.code.style=official org.gradle.caching=true org.gradle.configureondemand=true org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -Dfile.encoding=UTF-8 -org.gradle.parallel=true \ No newline at end of file +org.gradle.parallel=true + +# https://blog.jetbrains.com/kotlin/2022/07/a-new-approach-to-incremental-compilation-in-kotlin/ +kotlin.incremental.useClasspathSnapshot=true \ No newline at end of file