Upgrade Java version from 17 to 21 (latest LTS)#2
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Upgrade Java version from 17 to 21 (latest LTS)#2devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
- Update java.sourceCompatibility to VERSION_21 in build.gradle.kts - Update kotlinOptions.jvmTarget to 21 in build.gradle.kts - Update Detekt jvmTarget to 21 in build.gradle.kts - Update GitHub Actions workflow to use JDK 21 Co-Authored-By: harsha.shivakumar@lowes.com <harshaskumar05@gmail.com>
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:
|
JaCoCo 0.8.7 does not support Java 21 class files (major version 65). JaCoCo 0.8.12 adds support for Java 21. Co-Authored-By: harsha.shivakumar@lowes.com <harshaskumar05@gmail.com>
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.
Description
Upgrades the project from Java 17 to Java 21 (the latest LTS version). This includes updating the build configuration and CI workflow to target Java 21.
Changes
java.sourceCompatibilitytoVERSION_21inbuild.gradle.ktsjvmTargetto"21"inbuild.gradle.ktsjvmTargetfrom"14"to"21"inbuild.gradle.ktsCompatibility Notes
The current dependencies are compatible with Java 21:
JaCoCo required an upgrade from 0.8.7 to 0.8.12 to support Java 21 class files. No other dependency updates were required.
Test Compatibility
All unit, integration, and functional tests pass on Java 21. No test code changes were required - tests are Java-version agnostic (no
@DisabledOnJreor version-specific logic found).Type of change
Note: This is a breaking change for any consumers who are still on Java 17 runtime.
Checklist:
Human Review Checklist
Link to Devin run: https://lowes.devinenterprise.com/sessions/d8387dc8691943908b837ac02845b883
Requested by: harsha.shivakumar@lowes.com (@harshaskumar05)