Skip to content

Upgrade from Java 17 to Java 21#169

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

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

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Summary

Upgrades the project from Java 17 to Java 21 as part of a bulk Java version upgrade.

Changes:

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

Review & Testing Checklist for Human

  • Verify the application builds successfully with mvn clean install
  • Verify Docker image builds and the container starts correctly
  • Run the test suite and confirm all tests pass
  • Deploy to a staging environment and run smoke tests

Notes

Spring Boot 3.3.3 fully supports Java 21. The eclipse-temurin images are preferred over openjdk images which may not be available for Java 21.

Link to Devin session: https://app.devin.ai/sessions/9c9ab1ad61ec4127bcb0aee86ba68f7a
Requested by: @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 builder 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
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