Now that we have a new sbt, it would be rad to be able to use coursier with it!
@mosesn If you mean release sbt-coursier for sbt 1.0, it should already work with it (e.g. sbt-coursier 1.0.0-RC10 should be fine).
@alexarchambault did not work for me. I got an error that something could not be resolved, while everything worked fine without Coursier.
The error:
[error] coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error] org.scala-sbt:global-plugins;sbtVersion=1.0;scalaVersion=2.12:0.0:
[error] not found:
[error] /Users/anatolii/.ivy2/local/org.scala-sbt/global-plugins/scala_2.12/sbt_1.0/0.0/ivys/ivy.xml
[error] https://repo1.maven.org/maven2/org/scala-sbt/global-plugins_2.12_1.0/0.0/global-plugins-0.0.pom
[error] https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/global-plugins/scala_2.12/sbt_1.0//0.0/ivys/ivy.xml
[error] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/global-plugins/scala_2.12/sbt_1.0//0.0/ivys/ivy.xml
[error] (*:coursierResolutions) coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error] org.scala-sbt:global-plugins;sbtVersion=1.0;scalaVersion=2.12:0.0:
[error] not found:
[error] /Users/anatolii/.ivy2/local/org.scala-sbt/global-plugins/scala_2.12/sbt_1.0/0.0/ivys/ivy.xml
[error] https://repo1.maven.org/maven2/org/scala-sbt/global-plugins_2.12_1.0/0.0/global-plugins-0.0.pom
[error] https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/global-plugins/scala_2.12/sbt_1.0//0.0/ivys/ivy.xml
[error] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/global-plugins/scala_2.12/sbt_1.0//0.0/ivys/ivy.xml
Other plugins in global plugins.sbt:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC10")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.1")
Dependencies in build.sbt:
val Cats = "0.9.0"
val Shapeless = "2.3.2"
val KindProjector = "0.9.4"
val Freestyle = "0.1.1"
val MetaParadise = "3.0.0-M10"
val Scalacheck = "1.13.5"
// ...
, libraryDependencies ++= Seq(
"org.typelevel" %% "cats" % Cats
, "com.chuusai" %% "shapeless" % Shapeless
, "io.frees" %% "freestyle" % Freestyle
, "org.scalacheck" %% "scalacheck" % Scalacheck % "test"
)
, addCompilerPlugin("org.spire-math" %% "kind-projector" % KindProjector)
, addCompilerPlugin("org.scalameta" %% "paradise" % MetaParadise cross CrossVersion.full)
@alexarchambault also, have you seen https://github.com/sbt/sbt/issues/3412
The problem with Ivy publishing affects me as well. An interesting thing is that you can avoid it in your SBT builds by putting a dependency on Coursier to the project/project/build.sbt, because Couriser appears not to validate the Ivy files.
1.0.0-RC11 should fix that. Feel free to re-open (or discuss here) if ever that's not the case for you.
Most helpful comment
@alexarchambault did not work for me. I got an error that something could not be resolved, while everything worked fine without Coursier.
The error:
Other plugins in global
plugins.sbt:Dependencies in
build.sbt: