Skip to content

Conversation

@devin-ai-integration
Copy link

Migrate Spring Boot Banking Application from Java 17 to Java 21

Summary

Comprehensive migration of the Spring Boot banking application from Java 17 to Java 21, addressing all Java version references across the project:

  • Maven Configuration: Updated java.version property from 17 to 21 and fixed Maven compiler plugin inconsistency (was targeting Java 1.8, now properly targets Java 21)
  • Docker Images: Updated both build stage (maven:3.8.3-openjdk-21) and runtime stage (openjdk:21-alpine) base images
  • Documentation: Updated Jenkins installation commands in both README files to use openjdk-21-jre

This migration resolves the previous inconsistency where the project declared Java 17 as the target version but the Maven compiler was still targeting Java 1.8.

Review & Testing Checklist for Human

The following items require verification before merging (4 critical items):

  • Build Verification: Build the application locally with Java 21 (mvn clean compile) to ensure all code compiles successfully
  • Runtime Testing: Start the application and verify core banking functionality works (login, basic operations, database connectivity)
  • Docker Build: Test the Docker build process (docker build .) to confirm the new base images are available and the containerized application builds successfully
  • Dependency Compatibility: Run the full test suite to verify all dependencies (especially MySQL connector 8.0.33) are compatible with Java 21

Notes

- Update Java version property in pom.xml from 17 to 21
- Fix Maven compiler plugin configuration from Java 1.8 to Java 21
- Update Docker build stage base image to maven:3.8.3-openjdk-21
- Update Docker runtime stage base image to openjdk:21-alpine
- Update Jenkins installation docs from openjdk-17-jre to openjdk-21-jre in both README files
- Verified Spring Boot 3.3.3 compatibility with Java 21

Co-Authored-By: jia.wu@codeium.com <jia_wu@hotmail.ca>
@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