Upgrade from Java 17 to Java 22 (Phases 1-5)#78
Open
devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
Open
Upgrade from Java 17 to Java 22 (Phases 1-5)#78devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
Conversation
Phase 1: Update Maven Configuration - Update java.version property from 17 to 22 - Fix maven-compiler-plugin source/target from 1.8 to 22 - Upgrade Spring Boot parent from 3.3.3 to 3.4.0 Phase 2: Update Docker Configuration - Update builder stage from maven:3.8.3-openjdk-17 to maven:3.8.3-openjdk-22 - Update runtime stage from openjdk:17-alpine to openjdk:22-alpine Phase 3: Update Jenkins CI/CD Configuration - Update README.md Jenkins installation from openjdk-17-jre to openjdk-22-jre Phase 4: Update Kubernetes Deployment - Update container image tag to java22 for the rebuilt image Phase 5: Update Documentation - Update README-K8S.md Jenkins installation from openjdk-17-jre to openjdk-22-jre Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- Update Dockerfile to use existing Docker images: - Builder: maven:3.9-eclipse-temurin-22 (maven:3.8.3-openjdk-22 does not exist) - Runtime: eclipse-temurin:22-jre-alpine (openjdk:22-alpine does not exist) - Update README.md and README-K8S.md Jenkins installation: - openjdk-22-jre is not available in Ubuntu apt repositories - Added Eclipse Temurin (Adoptium) repository installation for Java 22 - Install temurin-22-jdk instead of openjdk-22-jre Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
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
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)