-
Notifications
You must be signed in to change notification settings - Fork 2k
Library cannot be used due to split package exported by dependencies #3769
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
Comments
This issue is related to #2606 |
Happy to take PRs to improve this. |
Hey, I can take up this issue if it is still open, it seems more like a dependency update with minor refactors. |
@venkat1701 Please do! The issue is still open. |
/assign |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@venkat1701 Any luck? |
@cowwoc yeah, i've added exclusions for |
Describe the bug
This library is incompatible with Java Modules. If you run
mvn dependency:tree
you will see:javax.annotation
andjakarta.annotation
. I believe the latter is meant to replace the former.javax.annotation
andjsr305
export the same package.Anyone who tries declaring this library as a dependency will get this error:
module X reads package javax.annotation from both jsr305 and java.annotation
Client Version
21.0.1
Java Version
23
To Reproduce
Create an application that contains a
module-info.java
that contains the following lines:Expected behavior
Ability to use from Java Modules. You'll need to replace all uses of
javax.annotation
byjakarta.annotation
and ideally please find a replacement for JSR 305. See https://nipafx.dev/jsr-305-java-9/ for what a mess it is on Java 9+.The text was updated successfully, but these errors were encountered: