Skip to content
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

Silencer 1.7.17 on 2.13.14 causes NoClassDefFoundError #86

Open
sideeffffect opened this issue May 8, 2024 · 0 comments
Open

Silencer 1.7.17 on 2.13.14 causes NoClassDefFoundError #86

sideeffffect opened this issue May 8, 2024 · 0 comments

Comments

@sideeffffect
Copy link
Contributor

The @silent annotation, when it's only added with Provided as in

  "com.github.ghik" % "silencer-lib" % silencerVersion % Provided cross CrossVersion.full

causes

java.lang.NoClassDefFoundError: com/github/ghik/silencer/silent
  ...
Caused by: java.lang.ClassNotFoundException: com.github.ghik.silencer.silent
  ...

The workaround is to add silencer-lib as a hard non-Provided dependency. But that is of course problematic in its own right.

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

No branches or pull requests

1 participant