Skip to content

Upgrade from Java 17 to Java 21#95

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

Upgrade from Java 17 to Java 21#95
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1770129006-java-21-upgrade

Conversation

@devin-ai-integration
Copy link

Summary

This PR upgrades the application from Java 17 to Java 21. The changes include:

  • Updated java.version property from 17 to 21 in pom.xml
  • Upgraded maven-compiler-plugin from 3.8.0 to 3.11.0 with source/target set to 21 (previously was inconsistently set to 1.8)
  • Updated Dockerfile build stage from maven:3.8.3-openjdk-17 to maven:3.9-eclipse-temurin-21
  • Updated Dockerfile runtime stage from openjdk:17-alpine to eclipse-temurin:21-jre-alpine (Eclipse Temurin is the recommended distribution per Java upgrade best practices)

Spring Boot 3.3.3 fully supports Java 21, so no framework changes are needed.

Review & Testing Checklist for Human

  • Verify the Docker build completes successfully with the new base images
  • Deploy to a staging environment and confirm the application starts without errors
  • Run smoke tests to verify basic functionality works with Java 21 runtime

Notes

The local build was not verified because the development environment has Java 17 installed. The actual build occurs in Docker containers which use Java 21.

Link to Devin run: https://app.devin.ai/sessions/0aa982e49a0a441e8c0ef4fd89fa93e8
Requested by: Joao Esteves (@joao-cognition)

- Update java.version property from 17 to 21 in pom.xml
- Update maven-compiler-plugin from 3.8.0 to 3.11.0 with source/target 21
- Update Dockerfile build stage from maven:3.8.3-openjdk-17 to maven:3.9-eclipse-temurin-21
- Update Dockerfile runtime stage from openjdk:17-alpine to eclipse-temurin:21-jre-alpine

Co-Authored-By: Joao Esteves <joao.esteves@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

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