Upgrade Java version from 17 to 21 (MBA-484) #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade Java version from 17 to 21 (MBA-484)
Summary
This PR upgrades the project's Java version from 17 to 21 and resolves a conflicting maven-compiler-plugin configuration.
Changes:
java.versionproperty from 17 to 21 in pom.xmlmaven-compiler-pluginconfiguration block that was incorrectly targeting Java 1.8 (source/target). The Spring Boot 3.3.3 parent POM handles compiler settings appropriately for Java 21.Scope: This is a deliberately narrow change focused only on the pom.xml configuration. Docker, README, and Kubernetes configs are intentionally NOT updated per task requirements and will be handled in separate tickets.
Review & Testing Checklist for Human
Recommended test plan:
mvn clean install -DskipTestswith Java 21 locallymvn clean installNotes
Link to Devin run: https://app.devin.ai/sessions/190f0e3c20ed469ab6a4e99bf12de818
Requested by: Jia Wu (jia.wu@cognition.ai) (@jia-cog)