Skip to content

chore: upgrade to Java 21 and update Docker base images#171

Open
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777292276-upgrade-java-21
Open

chore: upgrade to Java 21 and update Docker base images#171
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777292276-upgrade-java-21

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Summary

Upgrades the project from Java 17 to Java 21 and replaces deprecated Docker base images with Eclipse Temurin equivalents.

Changes

pom.xml

  • java.version: 1721
  • maven-compiler-plugin: 3.8.03.13.0
  • Compiler source/target: 1.821

Dockerfile

  • Stage 1: maven:3.8.3-openjdk-17maven:3.9.6-eclipse-temurin-21-alpine
  • Stage 2: openjdk:17-alpineeclipse-temurin:21-jre-alpine

The openjdk Docker images are deprecated; eclipse-temurin is the recommended replacement and provides Alpine-based images for Java 21.

Build verified locally with mvn clean install -DskipTests=trueBUILD SUCCESS.

Review & Testing Checklist for Human

  • Verify the application starts correctly with Java 21 (java -jar target/bankapp-0.0.1-SNAPSHOT.jar)
  • Confirm Docker image builds successfully (docker build -t bankapp .)
  • Validate no runtime regressions in banking operations (deposit, withdrawal, transfer)

Notes

  • The maven-compiler-plugin source/target was previously set to 1.8, which was inconsistent with the Java 17 parent. Now aligned to 21.

Link to Devin session: https://app.devin.ai/sessions/7c7fd04cc9cb41ddb44c0f0c2b39ebe0
Requested by: @Hammy-2025

- Update java.version from 17 to 21 in pom.xml
- Update maven-compiler-plugin from 3.8.0 to 3.13.0 with source/target 21
- Replace deprecated maven:3.8.3-openjdk-17 with maven:3.9.6-eclipse-temurin-21-alpine
- Replace deprecated openjdk:17-alpine with eclipse-temurin:21-jre-alpine

Co-Authored-By: Alex Hammett <alex.hammett@windsurf.com>
@devin-ai-integration
Copy link
Copy Markdown
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

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.

0 participants