Reputation: 53
I'm trying to use sbt-scapegoat by adding this to plugins.sbt:
addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.0.4")
My scala version is:
2.11.12
My sbt version is:
1.1.0
And I am getting this error:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.sksamuel.scapegoat#sbt-scapegoat;1.0.4: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.sksamuel.scapegoat:sbt-scapegoat:1.0.4 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.sksamuel.scapegoat:sbt-scapegoat:1.0.4 (scalaVersion=2.12, sbtVersion=1.0) (/home/nitin/workspace/nimble/oculus-analytics/project/plugins.sbt#L43-44)
[warn] +- default:oculus-analytics-build:0.1.0-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.sksamuel.scapegoat#sbt-scapegoat;1.0.4: not found
I have also tried specifying scapegoatVersion into build.sbt:
scapegoatVersion := "1.3.4"
I am using IntelliJ Idea. Thnx for help in advance.
Upvotes: 1
Views: 1091
Reputation: 53
addSbtPlugin("com.sksamuel.scapegoat" % "sbt-scapegoat" % "1.0.9")
This plugin worked with scala version 2.11.12 and sbt version 1.1.0
Upvotes: 4
Reputation: 1770
Looks like you have either wrong plugin name (and need scalac-scapegoat-plugin
) or use %%
instead of %
for sbt-scapegoat
which does not have _<scala version> suffix in maven repo.
Update
Ah, just noted addSbtPlugin
, so should be wrong name
Upvotes: 0