chore(MBA-1550): upgrade Java from 17 to 21 - #296
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
chore(MBA-1550): upgrade Java from 17 to 21#296devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Chris Livingston <chris.livingston@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
MBA-1550: move the app to JDK 21. Scope is the JDK bump plus proof it still compiles — Spring Boot stays at 3.3.3 (already Java 21 compatible).
pom.xmlalso had a latent bug: the explicitmaven-compiler-pluginconfig pinnedsource/targetto1.8, silently overridingjava.version— so the bytecode was Java 8 regardless of the property. Replaced withrelease, driven by the property, and dropped the pinned plugin version so the Spring Boot parent manages it:Dockerfile base images move to Eclipse Temurin (
maven:3.9-eclipse-temurin-21,eclipse-temurin:21-jre-alpine) since theopenjdkimages are deprecated and have no 21-alpine tag; both tags verified to exist upstream.Validated on JDK 21.0.11:
./mvnw clean compilecompiles with[debug parameters release 21], and./mvnw clean packagepasses (1 test, against a local MySQL 8). Docker build not exercised.README*.mdmentions ofopenjdk-17-jreare Jenkins host setup, not the app runtime — left alone.Devin-Org: engineering
Link to Devin session: https://app.devin.ai/sessions/c3085cdd6d83416a8beba7a8aa8bd471
Requested by: @clivingston-cognition
Note
Devin errored when opening this Pull Request as clivingston-cognition.
As a fallback, Devin opened this PR as itself.
Devin Review