Skip to content

Set org.gradle.tooling.parallel explicitly for Gradle 9.8 - #662

Merged
lagergren merged 1 commit into
masterfrom
gradle-tooling-parallel
Oct 2, 2026
Merged

lagergren merged 1 commit into
masterfrom
gradle-tooling-parallel

Conversation

@lagergren

Copy link
Copy Markdown
Contributor

Description

Adds org.gradle.tooling.parallel=true to the root gradle.properties.

Gradle 9.8 (adopted in #656) deprecates letting org.gradle.parallel=true implicitly enable parallel Tooling API model building, and Gradle 10 makes it an error. The warning only appears when an IDE syncs the project through the Tooling API. A CLI build never shows it, so --warning-mode runs don't catch it. On current master, fetching models for all 36 projects through the Tooling API prints:

Relying on the default value of the 'org.gradle.tooling.parallel' property while 'org.gradle.parallel' is enabled. This behavior has been deprecated. This will fail with an error in Gradle 10.

true keeps today's behavior. lang/intellij-plugin/gradle.properties doesn't set org.gradle.parallel, so it needs no change. The same fix is in xtclang/platform#24 and xtclang/examples#25 (both merged) and in xtclang/xtc-app-template#9.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Resolves/Fixes

  • Gradle 9.8 deprecation of implicit parallel model building (no issue filed)

How Has This Been Tested?

To reproduce what an IDE sync does, a small Tooling API client (gradle-tooling-api 9.8.0) connects to the build with --warning-mode=all and runs a BuildAction that fetches the GradleProject model for every project:

  • master (efdc4627a): CONFIGURE SUCCESSFUL, models for 36 projects, prints the deprecation above.
  • this branch: CONFIGURE SUCCESSFUL, models for 36 projects, no deprecation warnings.
  • ./gradlew help --warning-mode fail: succeeds.

Test Configuration:

  • Hardware/OS: macOS 26.6 (aarch64), Gradle 9.8.0 wrapper, daemon JVM Java 25
  • Command line: Tooling API BuildAction model fetch with --warning-mode=all; ./gradlew help --warning-mode fail

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Gradle 9.8 deprecates deriving Tooling API (IDE sync) model-building
parallelism from org.gradle.parallel, and Gradle 10 makes it an error.
IDE sync of master currently prints the deprecation for all 36 projects.
true keeps the current behavior. Matches xtclang/examples and
xtclang/platform.
@lagergren
lagergren enabled auto-merge (squash) October 2, 2026 07:08
@lagergren
lagergren disabled auto-merge October 2, 2026 08:55
@lagergren
lagergren merged commit 3b10723 into master Oct 2, 2026
5 checks passed
@lagergren
lagergren deleted the gradle-tooling-parallel branch October 2, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant