Skip to content

Conversation

@devin-ai-integration
Copy link

@devin-ai-integration devin-ai-integration bot commented Dec 2, 2025

Upgrade Java version from 17 to 21

Summary

This PR upgrades the Java version from 17 to 21 across the build configuration and Docker images. It also fixes an existing inconsistency where the maven-compiler-plugin was targeting Java 1.8 while the project property specified Java 17.

Changes made:

  • pom.xml: Updated java.version property from 17 to 21
  • pom.xml: Fixed maven-compiler-plugin source/target from 1.8 to 21 (resolving version mismatch)
  • Dockerfile: Updated builder stage from maven:3.8.3-openjdk-17 to maven:3.8.3-openjdk-21
  • Dockerfile: Updated runtime stage from openjdk:17-alpine to openjdk:21-alpine

Review & Testing Checklist for Human

  • Verify Docker image availability: Confirm that maven:3.8.3-openjdk-21 and openjdk:21-alpine exist on Docker Hub. If not, alternative tags like maven:3.9-eclipse-temurin-21 and eclipse-temurin:21-jre-alpine may be needed.
  • Test Docker build locally: Run docker-compose up -d --build and verify the application starts successfully
  • Verify application health: Check http://localhost:8080/actuator/health returns a healthy status after deployment

Notes

  • Spring Boot 3.3.3 officially supports Java 21
  • The docker-compose.yml uses image variables (${DUSER}/${IMAGE}) and requires no changes
  • Maven validation passed locally (mvn validate)

Link to Devin run: https://app.devin.ai/sessions/d8ac35baae5243c6a01cdea90e60f5fd
Requested by: Shawn Azman (@ShawnAzman)

- Update java.version property in pom.xml from 17 to 21
- Fix maven-compiler-plugin source/target from 1.8 to 21 (resolving inconsistency)
- Update Dockerfile builder stage from maven:3.8.3-openjdk-17 to maven:3.8.3-openjdk-21
- Update Dockerfile runtime stage from openjdk:17-alpine to openjdk:21-alpine

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@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.

2 participants