org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=1g kotlin.daemon.jvmargs=-Xmx1536m -XX:+UseSerialGC # 2026-10-05: parallel project execution combined with in-process Kotlin # compilation and a full worker count is what exhausted the 11.9 GB of RAM. # assemble passed in 5m33s with --max-workers=2 on the command line, so # project-level parallelism is turned off here and the master.cfg passes the # worker count explicitly. Caching and the configuration cache stay on; both # are what make a clean build affordable at all. org.gradle.parallel=false org.gradle.caching=true org.gradle.configuration-cache=true org.gradle.daemon=false kotlin.compiler.execution.strategy=in-process # 2g (Gradle, which now also runs the Kotlin compiler) + 1.5g (Kotlin daemon) # + wasm-opt + the JVM metaspace has to fit in 11.9 GB alongside the rest of # the host. --max-workers=1 in master.cfg keeps only one compile resident. kotlin.mpp.stability.nowarn=true android.useAndroidX=true