Bug 2064220 - Enable parallelism for Gradle Tooling API actions. r=android-reviewers,adhingra

This used to inherit from the org.gradle.parallel option automatically, but
now must be set separately as of Android Studio Quail 1.
https://developer.android.com/studio/releases/past-releases/as-quail-1-release-notes#android_studio_quail_1_parallel_gradle_sync_execution_change

Differential Revision: https://phabricator.services.mozilla.com/D319274
This commit is contained in:
Ryan VanderMeulen
2026-08-17 21:11:54 +00:00
committed by rvandermeulen@mozilla.com
parent 9cc7a4de03
commit 2a997fbcb1
4 changed files with 13 additions and 10 deletions
+1
View File
@@ -3,6 +3,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
org.gradle.parallel=true
org.gradle.tooling.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
@@ -17,11 +17,11 @@
# 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
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# https://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# XXX Deactivated because of broken releases?
# Enable parallel execution and model fetching during Gradle Sync.
# Both properties must be individually set per
# https://developer.android.com/studio/releases/past-releases/as-quail-1-release-notes#android_studio_quail_1_parallel_gradle_sync_execution_change
org.gradle.parallel=true
org.gradle.tooling.parallel=true
# When configured, Gradle will only configure relevant projects instead of all of them.
# This option should only be used with decoupled projects. More details, visit
+4 -3
View File
@@ -20,10 +20,11 @@ org.gradle.configureondemand=true
org.gradle.configuration-cache=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
# Enable parallel execution and model fetching during Gradle Sync.
# Both properties must be individually set per
# https://developer.android.com/studio/releases/past-releases/as-quail-1-release-notes#android_studio_quail_1_parallel_gradle_sync_execution_change
org.gradle.parallel=true
org.gradle.tooling.parallel=true
# Enables copying of Jetpack Benchmark results from the device to the build directory.
android.enableAdditionalTestOutput=true
@@ -20,10 +20,11 @@ org.gradle.configureondemand=true
org.gradle.configuration-cache=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
# Enable parallel execution and model fetching during Gradle Sync.
# Both properties must be individually set per
# https://developer.android.com/studio/releases/past-releases/as-quail-1-release-notes#android_studio_quail_1_parallel_gradle_sync_execution_change
org.gradle.parallel=true
org.gradle.tooling.parallel=true
libLicense=MPL-2.0
libLicenseUrl=https://www.mozilla.org/en-US/MPL/2.0/