Skip to content

Conversation

@devin-ai-integration
Copy link

@devin-ai-integration devin-ai-integration bot commented Jan 15, 2026

Summary

This PR migrates the Spring Boot BankApp from Java 17 to Java 22 by updating the build configuration and Docker images.

Changes made:

  • Updated java.version property from 17 to 22 in pom.xml
  • Updated Maven compiler plugin source/target from 1.8 to 22 (fixing a pre-existing inconsistency)
  • Updated Dockerfile build stage from maven:3.8.3-openjdk-17 to maven:3.9-eclipse-temurin-22-alpine
  • Updated Dockerfile runtime stage from openjdk:17-alpine to eclipse-temurin:22-jre-alpine

Updates since last revision

  • Replaced initially proposed Docker images with verified available alternatives from Docker Hub:
    • Build stage: maven:3.9-eclipse-temurin-22-alpine (confirmed available)
    • Runtime stage: eclipse-temurin:22-jre-alpine (confirmed available)

Review & Testing Checklist for Human

  • Verify the Jenkins CI pipeline builds successfully with the new Java 22 configuration
  • After CI passes, test the deployed application in a staging environment to ensure runtime compatibility
  • Confirm Kubernetes deployment works with the new container image once built

Recommended test plan:

  1. Wait for CI pipeline to complete and verify Docker build succeeds
  2. Deploy to a test namespace and verify application starts correctly
  3. Run basic smoke tests against the banking application endpoints

Notes

  • The Maven compiler plugin version (3.8.0) was kept unchanged but supports Java 22
  • Spring Boot 3.3.3 officially supports Java 17-22
  • MySQL connector 8.0.33 is compatible with Java 22

Link to Devin run: https://app.devin.ai/sessions/bad81380c15e4415b931dda990d91d3a
Requested by: Satwik Bebortha (@satwik-cog)

- Update java.version property from 17 to 22 in pom.xml
- Update Maven compiler plugin source/target from 1.8 to 22
- Update Dockerfile build stage from maven:3.8.3-openjdk-17 to maven:3.8.3-openjdk-22
- Update Dockerfile runtime stage from openjdk:17-alpine to openjdk:22-alpine

Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

- Build stage: maven:3.9-eclipse-temurin-22-alpine (verified available on Docker Hub)
- Runtime stage: eclipse-temurin:22-jre-alpine (verified available on Docker Hub)

Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant