build: stop excessive gradle daemons

This commit is contained in:
Alexander Capehart
2026-03-07 16:48:34 -07:00
parent 1c672e40f5
commit 6db3b7c13d
2 changed files with 21 additions and 5 deletions
+19 -3
View File
@@ -5,8 +5,10 @@
# For more details on how to configure your build environment visit
# 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 -Dkotlin.daemon.jvm.options=-Xmx1536m
# Keep the Gradle daemon itself modest and size the Kotlin daemon separately so
# daemon compatibility is simpler and builds do not overcommit RAM.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.daemon.jvmargs=-Xmx1024m
# 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
@@ -22,6 +24,20 @@ kotlin.code.style=official
android.enableR8.fullMode=true
android.nonTransitiveRClass=true
android.nonFinalResIds=true
org.gradle.parallel=true
# This project includes a very large vendored media tree. Letting Gradle fan out
# across every available core causes multiple heavy Android/Kotlin tasks to run
# at once and quickly exhaust memory on developer machines.
org.gradle.parallel=false
org.gradle.workers.max=2
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
android.defaults.buildfeatures.resvalues=true
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
android.enableAppCompileTimeRClass=false
android.usesSdkInManifest.disallowed=false
android.uniquePackageNames=false
android.dependency.useConstraints=true
android.r8.strictFullModeForKeepRules=false
android.r8.optimizedResourceShrinking=false
android.builtInKotlin=false
android.newDsl=false