Upgrade from Java 17 to Java 22 (Phases 1-5) #78
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 upgrades the Spring Boot BankApp from Java 17 to Java 22 across all configuration files, Docker images, and documentation.
Changes made:
java.versionto 22, fixed maven-compiler-plugin source/target from 1.8 to 22, upgraded Spring Boot parent from 3.3.3 to 3.4.0maven:3.9-eclipse-temurin-22and runtime stage toeclipse-temurin:22-jre-alpineopenjdk-22-jreis not available in Ubuntu apt repositories)java22Updates since last revision
maven:3.9-eclipse-temurin-22(previously referenced non-existentmaven:3.8.3-openjdk-22)eclipse-temurin:22-jre-alpine(previously referenced non-existentopenjdk:22-alpine)temurin-22-jdkpackage instead of unavailableopenjdk-22-jreReview & Testing Checklist for Human
docker build -t bankapp:java22 .to verify the image builds successfully with the new base imagestrainwithshubham/bankapp-eks:java22before deploying to KubernetesRecommended test plan:
docker build -t bankapp:java22 .docker run -p 8080:8080 bankapp:java22(will fail without MySQL, but should show Spring Boot startup)Notes
trainwithshubham/bankapp-eks:java22which needs to be built and pushed after this PR is mergedLink to Devin run: https://app.devin.ai/sessions/e4614558bfff42e0adbb5e24bba87f63
Requested by: Satwik Bebortha (@satwik-cog)