Update Gradle from 8.14 to 9.5.1#4138
Open
RobertBrunel wants to merge 2 commits into
Open
Conversation
Closed
ScottDugas
requested changes
May 8, 2026
7a124ca to
74c9359
Compare
ScottDugas
requested changes
May 19, 2026
Update the Gradle wrapper, regenerate the wrapper jar and scripts, and pin the SHA256 of the new distribution. Two plugins need updating alongside Gradle: * `com.google.protobuf` 0.9.4 to 0.9.6, which fixes a Gradle 9.1 deprecation in its `ToolsLocator`. For now, we need to stay below version 0.10.0, as that release makes `generatedFilesBaseDir` read-only and the setting in `gradle/proto.gradle` still needs to override it. * `com.gradleup.shadow` 8.3.5 to 8.3.10. Its `startShadowScripts` task references the `mainClassName` convention property, which Gradle 9 removes; version 8.3.7 restores compatibility. For now, we stay on the 8.3.* line because the version 9 rewrite introduces large breaking changes.
… 9.5 In `antlr.gradle`, use the `packageName` property on `AntlrTask` instead of passing `-package` through `arguments`. The `-package` argument form is deprecated in Gradle 9.5 and will be removed in Gradle 10. `packageName` appends the package subdirectory to `outputDirectory` automatically, so `outputDirectory` is shortened accordingly. The `packageName` property was introduced in Gradle 9.1.
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.
Update the Gradle wrapper, regenerate the wrapper jar and scripts, and pin the SHA256 of the new distribution.
Two plugins need updating alongside Gradle:
com.google.protobuf0.9.4 to 0.9.6, which fixes a Gradle 9.1 deprecation in itsToolsLocator. For now, we need to stay below version 0.10.0, as that release makesgeneratedFilesBaseDirread-only and the setting ingradle/proto.gradlestill needs to override it.com.gradleup.shadow8.3.5 to 8.3.10. ItsstartShadowScriptstask references themainClassNameconvention property, which Gradle 9 removes; version 8.3.7 restores compatibility. For now, we stay on the 8.3.* line because the version 9 rewrite introduces large breaking changes.Also resolve further Gradle deprecation warnings after upgrading to Gradle 9.5:
antlr.gradle, use thepackageNameproperty onAntlrTaskinstead of passing-packagethrougharguments. The-packageargument form is deprecated in Gradle 9.5 and will be removed in Gradle 10.packageNameappends the package subdirectory tooutputDirectoryautomatically, sooutputDirectoryis shortened accordingly. ThepackageNameproperty was introduced in Gradle 9.1.