-
Notifications
You must be signed in to change notification settings - Fork 282
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
Remove dependency on javax.annotation implementation as OpenSearch now has one. #2801
Remove dependency on javax.annotation implementation as OpenSearch now has one. #2801
Conversation
…w has one. This resolves "JAR hell" issues when installing the plugin. Signed-off-by: Thomas Farr <tsfarr@amazon.com>
Codecov Report
@@ Coverage Diff @@
## main #2801 +/- ##
=========================================
Coverage 61.47% 61.48%
+ Complexity 3403 3401 -2
=========================================
Files 266 266
Lines 18865 18865
Branches 3302 3302
=========================================
+ Hits 11598 11599 +1
+ Misses 5673 5669 -4
- Partials 1594 1597 +3 |
@@ -346,7 +346,6 @@ task integrationTest(type: Test) { | |||
check.dependsOn integrationTest | |||
|
|||
dependencies { | |||
implementation 'jakarta.annotation:jakarta.annotation-api:1.3.5' |
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.
That's is right, it comes from the recent protobuf-related changes when the @Generated
annotation was introduced, thanks @Xtansia
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.
Thank you @Xtansia! I also recently faced the jar hell issue and removed this line locally and was planning to raise a PR today. Thank you for taking care of it!
…w has one. (opensearch-project#2801) This resolves "JAR hell" issues when installing the plugin. Signed-off-by: Thomas Farr <tsfarr@amazon.com>
…w has one. (opensearch-project#2801) This resolves "JAR hell" issues when installing the plugin. Signed-off-by: Thomas Farr <tsfarr@amazon.com> Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
…w has one. (opensearch-project#2801) This resolves "JAR hell" issues when installing the plugin. Signed-off-by: Thomas Farr <tsfarr@amazon.com> Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
…w has one. (opensearch-project#2801) This resolves "JAR hell" issues when installing the plugin. Signed-off-by: Thomas Farr <tsfarr@amazon.com>
…w has one. (opensearch-project#2801) This resolves "JAR hell" issues when installing the plugin. Signed-off-by: Thomas Farr <tsfarr@amazon.com>
…w has one. (opensearch-project#2801) This resolves "JAR hell" issues when installing the plugin. Signed-off-by: Thomas Farr <tsfarr@amazon.com> Signed-off-by: Sam <samuel.costa@eliatra.com>
Description
Removes the dependency on
jakarta.annotation
an implementation ofjavax.annotation
, as OpenSearch now itself takes a dependency on an implementation ofjavax.annotation
.javax.annotation
causing a JAR hell error when installing the plugin.Also requires backporting to 2.x
Issues Resolved
Resolves #2799
Testing
Manual testing of repro steps in #2799 but using local build of plugin rather than published snapshot.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.