Skip to content

feature: Modernize from Java 17 to Java 21#255

Open
devin-ai-integration[bot] wants to merge 1 commit into
DevOpsfrom
devin/1782289261-java-21-upgrade
Open

feature: Modernize from Java 17 to Java 21#255
devin-ai-integration[bot] wants to merge 1 commit into
DevOpsfrom
devin/1782289261-java-21-upgrade

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown

Summary

Upgrades the entire build/deploy pipeline from Java 17 to Java 21.

pom.xml:

  • java.version property: 1721
  • maven-compiler-plugin: replaced the broken <source>1.8</source>/<target>1.8</target> (which overrode java.version and forced Java 8 compilation) with <release>21</release>; bumped plugin version to 3.13.0

Dockerfile:

  • Builder: maven:3.8.3-openjdk-17maven:3.9-eclipse-temurin-21 (openjdk images are deprecated)
  • Deployer: openjdk:17-alpineeclipse-temurin:21-jre-alpine

Docs: Updated openjdk-17-jreopenjdk-21-jre in both README.md and README-K8S.md Jenkins setup instructions.

Verified locally: ./mvnw clean install passes under JDK 21. Spring Boot 3.3.3 fully supports Java 21 — no framework version change needed.

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


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)

- pom.xml: update java.version to 21, replace source/target 1.8 with release 21,
  bump maven-compiler-plugin to 3.13.0
- Dockerfile: use maven:3.9-eclipse-temurin-21 builder and
  eclipse-temurin:21-jre-alpine deployer (openjdk images deprecated)
- README.md & README-K8S.md: update JRE install instructions to openjdk-21-jre

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