-
Notifications
You must be signed in to change notification settings - Fork 67
fix(deps): Upgrade JDK from 17 to 21 #1157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): Upgrade JDK from 17 to 21 #1157
Conversation
The upstream OTel Java Agent upgraded its build toolchain from JDK 17 to 21 in May 2024. This PR aligns ADOT with that change. Without this upgrade, merges with recent upstream changes will result in build failures. Tests performed: Local build with JDK 21 passes: ./gradlew build Unit tests pass: ./gradlew test Smoke/contract tests pass: ./gradlew appsignals-tests:contract-tests:contractTests
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1157 +/- ##
=============================================
- Coverage 85.71% 67.45% -18.26%
- Complexity 19 521 +502
=============================================
Files 3 54 +51
Lines 49 2649 +2600
Branches 5 368 +363
=============================================
+ Hits 42 1787 +1745
- Misses 3 729 +726
- Partials 4 133 +129 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
thpierce
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can only fully validate this by running E2E tests in main build, since they test the produced artifact against all supported versions of Java. Anyways, since the upstream did this already, should be acceptable.
The upstream OTel Java Agent upgraded its build toolchain from JDK 17 to 21 in May 2024. This PR aligns ADOT with that change. Without this upgrade, merges with recent upstream changes will result in build failures.
Build with jdk21 #11219
open-telemetry/opentelemetry-java-instrumentation#11219
Tests performed:
Local build with JDK 21 passes: ./gradlew build
Unit tests pass: ./gradlew test
Smoke/contract tests pass: ./gradlew appsignals-tests:contract-tests:contractTests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.