Skip to content

Install instructions are not universal #54

@dhorkin

Description

@dhorkin

The docs say to add this to build.sbt:

libraryDependencies ++= Seq(
  compilerPlugin("com.github.ghik" % "silencer-plugin" % silencerVersion cross CrossVersion.full),
  "com.github.ghik" % "silencer-lib" % silencerVersion % Provided cross CrossVersion.full
)

This didn't work for me. I kept getting this:

[error] silencer-plugin was enabled but @silent annotation was not found on classpath - have you added silencer-lib as a library dependency?

It turns out my issue was the % Provided in there. Remove that, and everything works. I don't know exactly what part of my build configuration is the issue, but that solved it.

I'm suspect my issue was related to this image: SBT configuration graph

In fact, replacing % Provided with % Compile seems to work. I imagine that's potentially better than removing the specifier entirely?

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