From 26f9067af5fc8907258f10e3cdf4eb7bcd7fc55d Mon Sep 17 00:00:00 2001 From: ansehun Date: Mon, 14 Apr 2025 16:08:14 +0900 Subject: [PATCH 1/2] Add properties to improve build speed --- gradle.properties | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 11613945..7c60f93f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects @@ -26,3 +26,12 @@ android.nonFinalResIds=false # Enable configuration cache org.gradle.configuration-cache=true + +# Enable Gradle's build cache for faster build times by reusing outputs from previous builds +org.gradle.caching=true + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. +org.gradle.parallel=true + + From fe96c6f349659c00c30d96608fcde27cfa0fb8d5 Mon Sep 17 00:00:00 2001 From: ansehun Date: Mon, 14 Apr 2025 16:09:46 +0900 Subject: [PATCH 2/2] Modify jvmargs --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 7c60f93f..f8cc44a8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects