Skip to content

Conversation

@devin-ai-integration
Copy link

Summary

This PR migrates the Springboot-BankApp from Java 17 to Java 21. The current Spring Boot version (3.3.3) already supports Java 21, so no Spring Boot upgrade was required.

Changes made:

  • Updated java.version property from 17 to 21 in pom.xml
  • Updated maven-compiler-plugin source/target from 1.8 to 21 in pom.xml
  • Updated Dockerfile builder stage from maven:3.8.3-openjdk-17 to maven:3.8.3-openjdk-21
  • Updated Dockerfile runtime stage from openjdk:17-alpine to openjdk:21-alpine
  • Updated README.md Jenkins installation instructions from openjdk-17-jre to openjdk-21-jre

Review & Testing Checklist for Human

  • Verify Docker images maven:3.8.3-openjdk-21 and openjdk:21-alpine exist and are available on Docker Hub
  • Build the application locally with Java 21 to verify compilation succeeds
  • Run the Docker build to ensure the container builds successfully
  • Test the application end-to-end to verify no runtime issues with Java 21

Recommended test plan: Run docker build -t bankapp . and then docker run -p 8080:8080 bankapp to verify the application starts correctly with the new Java 21 base images.

Notes

Note: The maven-compiler-plugin was previously configured for Java 1.8 (source/target), which was inconsistent with the java.version property of 17. This has been updated to 21 for consistency.

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

- Update java.version property from 17 to 21 in pom.xml
- Update maven-compiler-plugin source/target from 1.8 to 21
- Update Dockerfile builder stage from openjdk-17 to openjdk-21
- Update Dockerfile runtime stage from openjdk:17-alpine to openjdk:21-alpine
- Update README.md Jenkins installation from openjdk-17-jre to openjdk-21-jre

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.

1 participant