chore(deps): update gradle to v9.7.0 - #3016
Merged
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/gradle-9.x
branch
from
August 17, 2026 04:16
48ba217 to
781e553
Compare
pull Bot
pushed a commit
to Mu-L/spotless
that referenced
this pull request
Aug 17, 2026
Bumping the wrapper past 9.4.1 (diffplug#3016) surfaced two independent regressions. 1. Gradle 9.5.0 broke `testlib/build.gradle`: Could not get unknown property 'sourceSets' for project ':lib' of type ...DefaultProjectDependency Inside a `dependencies { }` block, `project(path)` used to resolve to `Project.project(String)` and return a `Project`. As of 9.5.0 it resolves to `DependencyHandler.project(String)` and returns a `ProjectDependency`, which has no `sourceSets`: 9.4.1: project(String) -> ...project.LifecycleAwareProject_Decorated 9.5.0: project(String) -> ...dependencies.DefaultProjectDependency_Decorated The line turns out to be unnecessary. `:lib`'s jar already bundles every glue source set, and that jar is on testlib's runtime classpath, which is where FeatureClassLoader resolves `com.diffplug.spotless.glue.*`. So just drop it. 2. Gradle 9.6.0 silently broke publishing. The legacy software-model `model { publishing { } }` rule no longer binds, so the pluginMaven publication is never created and publishToMavenLocal becomes a no-op with no error: 9.5.1: > Task :lib-extra:publishPluginMavenPublicationToMavenLocal 9.6.0: > Task :lib-extra:publishToMavenLocal UP-TO-DATE Unwrapping it to a plain `publishing { }` block fixes it. The software model is slated for removal in Gradle 10 anyway. Generated pom-default.xml and module.json are byte-identical before and after for all four published projects. Neither change is documented in Gradle's 9.5/9.6 release notes or the 9.x upgrade guide. Verified at 9.7.0: spotlessCheck, `assemble testClasses`, and `build -x spotlessCheck -PSPOTLESS_EXCLUDE_MAVEN=true` (748 tests) all pass, publishToMavenLocal runs the same 66 tasks as on 9.4.1, and the signing/Sonatype release tasks are still wired. Everything still passes on 9.4.1, so this can land ahead of the wrapper bump. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.4.1→9.7.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
gradle/gradle (gradle)
v9.7.0Compare Source
v9.6.1Compare Source
v9.6.0Compare Source
v9.5.1: 9.5.1Compare Source
The Gradle team is excited to announce Gradle 9.5.1.
Here are the highlights of this release:
Read the Release Notes
We would like to thank the following community members for their contributions to this release of Gradle:
atm1020,
mataha,
Adam,
Attila Kelemen,
Benedikt Ritter,
Björn Kautler,
Caro Silva Rode,
CHANHAN,
Dmitry Nezavitin,
Eng Zer Jun,
KugelLibelle,
Madalin Valceleanu,
Markus Gaisbauer,
Oliver Kopp,
Philip Wedemann,
ploober,
Roberto Perez Alcolea,
Rohit Anand,
Suvrat Acharya,
Ujwal Suresh Vanjare,
Victor Merkulov
Upgrade instructions
Switch your build to use Gradle 9.5.1 by updating your wrapper:
See the Gradle 9.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading.
For Java, Groovy, Kotlin and Android compatibility, see the full compatibility notes.
Reporting problems
If you find a problem with this release, please file a bug on GitHub Issues adhering to our issue guidelines.
If you're not sure you're encountering a bug, please use the forum.
We hope you will build happiness with Gradle, and we look forward to your feedback via Twitter or on GitHub.
v9.5.0: 9.5.0Compare Source
The Gradle team is excited to announce Gradle 9.5.0.
Here are the highlights of this release:
Read the Release Notes
We would like to thank the following community members for their contributions to this release of Gradle:
atm1020,
mataha,
Adam,
Attila Kelemen,
Benedikt Ritter,
Björn Kautler,
Caro Silva Rode,
CHANHAN,
Dmitry Nezavitin,
Eng Zer Jun,
KugelLibelle,
Madalin Valceleanu,
Markus Gaisbauer,
Oliver Kopp,
Philip Wedemann,
ploober,
Roberto Perez Alcolea,
Rohit Anand,
Suvrat Acharya,
Ujwal Suresh Vanjare,
Victor Merkulov
Upgrade instructions
Switch your build to use Gradle 9.5.0 by updating your wrapper:
See the Gradle 9.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading.
For Java, Groovy, Kotlin and Android compatibility, see the full compatibility notes.
Reporting problems
If you find a problem with this release, please file a bug on GitHub Issues adhering to our issue guidelines.
If you're not sure you're encountering a bug, please use the forum.
We hope you will build happiness with Gradle, and we look forward to your feedback via Twitter or on GitHub.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.