Skip to content

Silencer 1.7.17 on 2.13.14 causes NoClassDefFoundError #86

@sideeffffect

Description

@sideeffffect

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions