build: guard local gradle runs against exhausting the box

The devshell `gradle` now serialises local builds with flock and runs
them under `nice` with capped workers, so several agents building at
once queue instead of piling up daemons and compile workers and taking
the machine down. With CI/GITHUB_ACTIONS set it execs Gradle directly,
leaving CI untouched. Also shorten the Gradle daemon idle timeout so
idle daemons are reaped sooner.
This commit is contained in:
austinried
2026-10-09 07:42:05 +00:00
parent 5f138bde6a
commit 336fd9c49f
3 changed files with 11 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=warn
org.gradle.daemon.idletimeout=600000
android.useAndroidX=true
android.nonTransitiveRClass=true