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.
addSbtPlugin("com.sksamuel.scapegoat" % "sbt-scapegoat" % "1.0.9")
This plugin worked with scala version 2.11.12 and sbt version 1.1.0
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
Related
I have a Play! 2.6 project with scala 2.12 and sbt 1.1.6
I need to perform SOAP api call in my service so I saw Play! have something called Reactive SOAP for Play, and when I went in the documentation (https://github.com/playframework/play-soap#installation) the first stage was to add the plugin:
resolvers += Resolver.url("play-sbt-plugins", url("https://dl.bintray.com/playframework/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.typesafe.sbt" % "sbt-play-soap" % "1.1.3")
but I get an error:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbt#sbt-play-soap;1.1.3: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbt:sbt-play-soap:1.1.3 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
did someone tried this ever? thanks
The version 1.1.3 is only available for sbt 0.13.
Since you are using sbt 1.x.x, you have to use version 1.1.4
resolvers += Resolver.url("play-sbt-plugins", url("https://dl.bintray.com/playframework/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.typesafe.sbt" % "sbt-play-soap" % "1.1.4")
I've started to learn Scala recently for machine learning purpose and i need plotly to draw my plots.
The fact is after following all installation
steps on their site i get this error :
sbt:DAY_01> run
[info] Updating ...
[warn] module not found: co.theasi#plotly_2.12;0.2.0
[warn] ==== local: tried
[warn] /Users/lucasclerisse/.ivy2/local/co.theasi/plotly_2.12/0.2.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/co/theasi/plotly_2.12/0.2.0/plotly_2.12-0.2.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /Users/lucasclerisse/.sbt/preloaded/co.theasi/plotly_2.12/0.2.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////Users/lucasclerisse/.sbt/preloaded/co/theasi/plotly_2.12/0.2.0/plotly_2.12-0.2.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: co.theasi#plotly_2.12;0.2.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] co.theasi:plotly_2.12:0.2.0 (/Users/lucasclerisse/Documents/Ecole/Piscine_IA_POC/DAY_01/build.sbt#L7-8)
[warn] +- default:day_01_2.12:1.1.0
[error] sbt.librarymanagement.ResolveException: unresolved dependency: co.theasi#plotly_2.12;0.2.0: not found
Here is my sbt.build :
name := "DAY_01"
version := "1.1.0"
scalaVersion := "2.12.4"
libraryDependencies += "co.theasi" %% "plotly" % "0.2.0"
I tried to downgrade my sbt version and another ploty version, but it didn't work.
This is the exact library dependency:
libraryDependencies += "co.theasi" % "plotly_2.11" % "0.2.0"
in your code sbt is trying to look for plotly dependency for scala version 2.12, which I guess is not available. As while going through there documentation, it looks that the latest version supports scala 2.11.
You can check here: click
I am using sbt v0.13.9 and scala v2.11.7. I have tried adding the sbt assembly plugin to assembly.sbt as well as plugin.sbt but neither worked:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.2")
I have tried adding the sbt native packager to the plugin.sbt but I am getting the same error (copied below):
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.1.0-RC1"
I have the following resolvers in my build.sbt - I am guessing I need to add a resolver for sbt assembly (even though the docs on that site do not mention anything about it):
Resolver.sonatypeRepo("public"),
Resolver.sbtPluginRepo("releases"),
Resolver.url("bintray-sbt-plugins", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns),
The error I am getting is the following:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.14.2: not found
[warn] :: com.typesafe.sbt#sbt-native-packager;1.1.0-RC1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.eed3si9n:sbt-assembly:0.14.2 (scalaVersion=2.11, sbtVersion=0.13)
[warn] com.typesafe.sbt:sbt-native-packager:1.1.0-RC1 (scalaVersion=2.11, sbtVersion=0.13)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.eed3si9n:sbt-assembly:0.14.2 (scalaVersion=2.11, sbtVersion=0.13) (/home/test/test-server/plugins.sbt#L4-5)
[warn] +- com.test:test-server_2.11:1.0.0
[warn] com.typesafe.sbt:sbt-native-packager:1.1.0-RC1 (scalaVersion=2.11, sbtVersion=0.13) (/home/tets/test-server/plugins.sbt#L6-7)
Should I be changing the scala or sbt version to get this to work?
From the error messages above, it looks like your plugins.sbt is in your project root directory -- it should be in the ./project/ subdirectory (i.e. /home/tets/test-server/project/ ). Put the reference to sbt-assembly in ./project/assembly.sbt, and the reference to sbt-native-packager in ./project/plugins.sbt
i've read all of the similar questions but neither of the suggestions fixes my problem. Perhaps i am unable to see it.
The problem is i have project/plugins.sbt
and when i try to add for example
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
it gives me
[error] (*:update) sbt.ResolveException:
unresolved dependency: com.eed3si9n#sbt-assembly;0.11.2: not found
then i add
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
but the error is same
my sbt version is
sbt launcher version 0.13.8
and scala version is
Scala code runner version 2.11.6 -- Copyright 2002-2013, LAMP/EPFL
Perhaps someone can point me the right direction.
Thanks in advance.
EDIT:
when i put
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
to project/assembly.sbt
i got the same error
actually i do not think the error is for sbt-assembly
it gives the same sort of error when i try to add other plugins
[info] Resolving com.eed3si9n#sbt-assembly;0.13.0 ...
[warn] module not found: com.eed3si9n#sbt-assembly;0.13.0
[warn] ==== local: tried
[warn] .ivy2/local/com.eed3si9n/sbt-assembly/scala_2.11/sbt_0.13/0.13.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.11_0.13/0.13.0/sbt-assembly-0.13.0.pom
[warn] ==== Typesafe Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/eed3si9n/sbt-assembly_2.11_0.13/0.13.0/sbt-assembly-0.13.0.pom
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.13.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.eed3si9n:sbt-assembly:0.13.0 (sbtVersion=0.13, scalaVersion=2.11)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.eed3si9n:sbt-assembly:0.13.0 (sbtVersion=0.13, scalaVersion=2.11) (assembly.sbt#L2-3)
1.0
EDIT
Ok for the others that are careless like me
in all the docs it says like project/plugins.sbt, or project/assembly.sbt, etc...
actualy i thought "project" should be the project folder of the application but it is the [your_project_name]/project :(
so all the mentioned conf should go in that directory.
thanks a lot for the replies..
sbt-assembly:
For sbt 0.13.6+ add sbt-assembly as a dependency in
project/assembly.sbt:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
Maybe the problem is with the version of the plugin you want to use?
Try this:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
I can't try any example from spay.io since I can't resolve an error about dependencies in build.sbt. Here is how it looks like:
//....skipped
resolvers += "spray repo" at "http://repo.spray.io"
libraryDependencies += "io.spray" % "spray-can" % "1.0"
It gives me an error, however:
[info] Resolving io.spray#spray-can;1.0 ...
[warn] module not found: io.spray#spray-can;1.0
[warn] ==== local: tried
[warn] /home/alex/.ivy2/local/io.spray/spray-can/1.0/ivys/ivy.xml
[warn] ==== Typesafe Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/io/spray/spray-can/1.0/spray-can-1.0.pom
[warn] ==== spray repo: tried
[warn] http://repo.spray.io/io/spray/spray-can/1.0/spray-can-1.0.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/io/spray/spray-can/1.0/spray-can-1.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: io.spray#spray-can;1.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: io.spray#spray-can;1.0: not found
//..................................... skipped
[error] (*:update) sbt.ResolveException: unresolved dependency: io.spray#spray-can;1.0: not found
Even when I change the version to be 1.1, I still have the same error.
What's wrong with that?
There is no version 1.0 of spray yet, according to the docs (and browsing the repo): see spray - Current Versions.
The latest seems to be either 1.0-M7 for scala 2.9.2 or 1.1-M7 for scala 2.10.0-RC5.