Files
tubestation/gradle.properties
Alex Hochheiden 3465852b66 Bug 1954747 - Standardize jvmargs across projects to share Gradle daemon r=nalexander,android-reviewers
This changes makes all projects use identical `org.gradle.jvmargs`, eliminating
the `Starting a Gradle Daemon, 2 incompatible Daemons could not be reused`warning.

By sharing a single daemon with consistent JVM settings, we greatly reduce the
build’s overall memory footprint.

Differential Revision: https://phabricator.services.mozilla.com/D247878
2025-05-06 22:09:31 +00:00

19 lines
897 B
Properties

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
org.gradle.parallel=true
org.gradle.configureondemand=true
# Be careful when changing org.gradle.jvmargs below. It will clobber
# any defaults set by Gradle: https://github.com/gradle/gradle/issues/19750
# Temporary workaround: all projects must use identical JVM arguments in gradle.properties to enable daemon sharing.
# Do not modify these values without first reviewing Bug 1954747: https://bugzilla.mozilla.org/show_bug.cgi?id=1954747
org.gradle.jvmargs=-Xmx7g -Xms2g -XX:MaxMetaspaceSize=6g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC
org.gradle.daemon=true
org.gradle.configuration-cache=true
android.useAndroidX=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false