Migrate from Java 17 to Java 22 (Phases 1-5) #83
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
This PR migrates the Springboot-BankApp from Java 17 to Java 22, covering phases 1-5 of the migration plan. The changes update the Java version across build configuration, Docker images, and documentation.
Key changes:
java.versionproperty from 17 to 22, andmaven-compiler-pluginsource/target from 1.8 to 22maven:3.9-eclipse-temurin-22-alpineand runtime stage toeclipse-temurin:22-jre-alpine(note: the originally requestedmaven:3.8.3-openjdk-22andopenjdk:22-alpineimages do not exist on Docker Hub)openjdk-21-jrewith a note explaining thatopenjdk-22-jreis not available in standard Ubuntu repositoriesUpdates Since Last Revision
openjdk-22-jretoopenjdk-21-jresince Java 22 is not available via apt in Ubuntu repos. Added a note recommending Eclipse Temurin/Adoptium as an alternative for Java 22.maven:3.9-eclipse-temurin-22-alpineandeclipse-temurin:22-jre-alpineReview & Testing Checklist for Human
Recommended test plan:
Notes
The Jenkinsfile and GitOps/Jenkinsfile were reviewed and found to be Java version agnostic (they use shared library functions and don't hardcode Java versions), so no changes were required.
Link to Devin run: https://app.devin.ai/sessions/405849c37f9b4d0e9e7c41bbde831cba
Requested by: Satwik Bebortha (@satwik-cog)