Repository navigation
Upgrade to Gradle 9.8.1 and Java 25 - #34
Merged
Merged
Conversation
- Upgrade the Gradle wrapper from 8.12.1 to 9.8.1. - Compile all subprojects with a Java 25 toolchain. Add the foojay resolver plugin to download JDK 25 if it is not installed. - Change the shadow plugin to com.gradleup.shadow 9.6.1, because the old plugin does not work with Gradle 9. - Upgrade axion, lombok, groovy, spock and picocli to versions that work with Gradle 9 and JDK 25. - Use rootProject.scmVersion to remove a Gradle 10 deprecation. - Build with JDK 25 in CI and release workflows. The released jar now needs Java 25 or newer to run. Co-Authored-By: Claude Opus 5.5 <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.
Summary
build.gradle). Add the foojay resolver plugin insettings.gradle, which downloads JDK 25 if it is not installed.com.gradleup.shadow9.6.1. The oldcom.github.johnrengelman.shadowplugin does not work with Gradle 9.rootProject.scmVersionto remove a deprecation that becomes an error in Gradle 10.This also fixes the local build error "Type T not present", which occurs when Gradle 8.12 runs on JDK 24 or 25. Gradle 9.8.1 runs on JDK 17 or newer and compiles with the JDK 25 toolchain, so the JDK in your shell no longer matters.
Breaking change
The released jar now needs Java 25 or newer to run. The homebrew formula in
rundeck/homebrew-howto-cli-tooldoes not declare a Java dependency (depends_onis commented out). Users with an older Java will get an error when they runhow. Consider addingdepends_on "openjdk@25"to the formula, or mention it in the release notes.Test plan
./gradlew clean buildon JDK 25: 77 tests, 0 failures, no deprecation warnings with--warning-mode all-all.jarare version 69 (Java 25)howCLI andjava -jar how-*-all.jarlist actions in a sample project🤖 Generated with Claude Code