Migrate from Java 17 to Java 22 (Phases 1-4) #82
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 Spring Boot banking application from Java 17 to Java 22, covering Phases 1-4 of the migration plan. The changes span build configuration, Docker images, CI/CD documentation, and Kubernetes deployment.
pom.xml changes:
mysql-connector-java8.0.33 →mysql-connector-j9.0.0 (new artifact name)Dockerfile changes:
maven:3.8.3-openjdk-17→maven:3.9-eclipse-temurin-22openjdk:17-alpine→eclipse-temurin:22-jre-alpineDocumentation & Deployment:
openjdk-21-jre(see note below)java22for stagingUpdates since last revision
openjdk-22-jretoopenjdk-21-jrebecauseopenjdk-22-jreis not available in Ubuntu repositories. Available versions are 8, 11, 17, 18, 21, and 25. The application itself still runs on Java 22 via Docker containers.Review & Testing Checklist for Human
maven:3.9-eclipse-temurin-22andeclipse-temurin:22-jre-alpineexist on Docker Hub (verified by Devin, but double-check)mysql-connector-java)openjdk-21-jrepackage installs correctly on target Ubuntu version for JenkinsRecommended test plan:
Notes
Link to Devin run: https://app.devin.ai/sessions/8ea19666be8546bab54a3e13aa928d45
Requested by: Satwik Bebortha (@satwik-cog)