From 2cd353c8b66e8835ea8c67fd705877e84a42376f Mon Sep 17 00:00:00 2001 From: Vincent Brison Date: Mon, 22 Nov 2021 16:26:52 +0100 Subject: [PATCH] Try to use less memory and still using // gradle workers --- gradle.properties | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 88df17f87..cab425337 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,12 +6,15 @@ # 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=-Xmx3g -org.gradle.workers.max=3 +# https://developer.android.com/studio/build/optimize-your-build +# https://github.com/Kotlin/dokka/issues/1405 +org.gradle.jvmargs=-Xmx1536m -XX:MaxMetaspaceSize=512m -XX:+UseParallelGC +# https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching=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 -# org.gradle.parallel=true +org.gradle.parallel=true # AndroidX package structure to make it clearer which packages are bundled with the # Android operating system, and which are packaged with your app's APK # https://developer.android.com/topic/libraries/support-library/androidx-rn