Upgrade to Java 21#1035
Open
vasiliy-mikhailov wants to merge 1 commit into
Open
Conversation
Raise the compiler target from 17 to 21. All 1135 tests pass under JDK 21 with none lost.
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.
Upgrades the build from Java 17 to Java 21 (LTS).
pom.xmlandconformance-tests/client-spring-http-client/pom.xml:<java.version>(compiler target) 17 → 21Verification: the project compiles under JDK 21 and all 1135 tests pass, with none lost versus the JDK-17 baseline. No production or test code changed — only the compiler target.
(Heads-up: raising the SDK baseline to 21 means consumers will need to build/run on JDK 21+. Happy to close this if you intend to keep a Java 17 baseline for broader compatibility — just offering it as a tested option.)
How this was produced
This change was produced by running the OpenRewrite recipe below — the committed diff is the recipe output (no hand-editing):
mvn -U org.openrewrite.maven:rewrite-maven-plugin:RELEASE:run \ -Drewrite.configLocation=$(pwd)/rewrite.yml \ -Drewrite.activeRecipes=com.example.UpgradeJava \ -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASEVerified: all 1135 tests pass under JDK 21, none lost versus the baseline.