Skip to content

build: migrate from Java 17 to Java 21#262

Open
devin-ai-integration[bot] wants to merge 1 commit into
DevOpsfrom
devin/1782732341-java21-migration
Open

build: migrate from Java 17 to Java 21#262
devin-ai-integration[bot] wants to merge 1 commit into
DevOpsfrom
devin/1782732341-java21-migration

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jun 29, 2026

Copy link
Copy Markdown

Summary

Migrates the build/runtime toolchain from Java 17 to Java 21. Spring Boot 3.3.3 already supports 21, so no parent bump was needed.

  • pom.xml: java.version 17 → 21. Removed the maven-compiler-plugin <configuration> block entirely — it was pinning <source>/<target> to 1.8, conflicting with java.version. The plugin now inherits release=21 from the Spring Boot parent.
  • Dockerfile: builder maven:3.8.3-openjdk-17maven:3.9-eclipse-temurin-21-alpine; deployer openjdk:17-alpineeclipse-temurin:21-jre-alpine (the deprecated openjdk images have no 21 tags; Temurin is the maintained replacement).
  • README.md / README-K8S.md: openjdk-17-jreopenjdk-21-jre in the Jenkins host setup step.

Verification

  • mvn clean install (Java 21) — succeeds.
  • docker build -t bankapp:java21 . — succeeds (builder compiles + runtime image builds).

Link to Devin session: https://app.devin.ai/sessions/e3693e722c454f90825b5c18d13969de
Requested by: @joao-cognition


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)

Co-Authored-By: Joao Esteves <joao.esteves@cognition.ai>
@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, CI, and merge conflict 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