Skip to content

fix: Dependency Clash with annotations-api #16

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

Merged
merged 6 commits into from
Feb 20, 2025

Conversation

wba2hi
Copy link
Contributor

@wba2hi wba2hi commented Feb 17, 2025

Looking at the gradle.lockfile it can be seen that both dependencies are available:

  • org.apache.tomcat:annotations-api:6.0.53=compileClasspath,compileProtoPath,testCompileClasspath,testCompileProtoPath,testRuntimeClasspath
  • javax.annotation:javax.annotation-api:1.3.2=compileClasspath,compileProtoPath,testCompileClasspath,testCompileProtoPath,testRuntimeClasspath

org.apache.tomcat:annotations-api is added explicitely, but javax.annotation:annotation-api is a transitive dependency.

Due to this, the org.apache.tomcat:annotations-apo dependency should be safe to remove. Somehow it even wonders me, why this build at all and didn't already throw the exception directly when building the sdk.

Resolves the following warning: Using 'getter for first: E!' is an
error. 'getFirst()' member of List is redundant in Kotlin and might be
removed soon. Please use 'first()' stdlib extension instead. The
snippet itself is not using "getFirst" or "first" but the correctly
stated "first()" method. Therefore it seems to be a false positive.
@wba2hi wba2hi force-pushed the annotation-dependency-clash branch from b3794f3 to ff3d550 Compare February 18, 2025 10:24
@wba2hi wba2hi marked this pull request as ready for review February 18, 2025 10:35
Copy link
Contributor

@lukasmittag lukasmittag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wba2hi wba2hi merged commit 21e2a30 into eclipse-kuksa:main Feb 20, 2025
5 checks passed
@wba2hi wba2hi deleted the annotation-dependency-clash branch February 20, 2025 08:07
@wba2hi wba2hi linked an issue Feb 20, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate Classes Clash due to similar dependencies
2 participants