Skip to content

Upgrade from Java 17 to Java 21#94

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

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

Conversation

@devin-ai-integration
Copy link

Summary

Upgrades the Spring Boot BankApp from Java 17 to Java 21. This includes updates to:

  • pom.xml: Updated java.version property to 21, upgraded maven-compiler-plugin to 3.11.0 with source/target 21 (previously was misconfigured with source/target 1.8)
  • Dockerfile: Updated build stage to maven:3.9-eclipse-temurin-21 and runtime stage to eclipse-temurin:21-jre-alpine (using Eclipse Temurin instead of openjdk images per best practices)

The application builds successfully with Java 21. Spring Boot 3.3.3 fully supports Java 21.

Review & Testing Checklist for Human

  • Verify the Docker images (maven:3.9-eclipse-temurin-21 and eclipse-temurin:21-jre-alpine) exist and pull correctly
  • Build and run the Docker container to confirm the application starts successfully with Java 21
  • Test critical application functionality (login, transactions, etc.) in a staging environment with the MySQL database

Note: Local tests could not run due to missing MySQL database infrastructure, so runtime verification is important.

Notes

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