Hello I currently upgrading to sbt 1.3.0 and my project is currently on scalaVersion 2.11.
I would like to use the sbt-plugin but the directory https://dl.bintray.com/sbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/ seems to only have 2.10 or 2.12. In the 2.10 dir there is 2.5.15, but if I specify the versions in plugins.sbt: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.15", sbtVersion ="0.13",scalaVersion = "2.11")
and have scalaVersion := 2.11.12 the i get this conflict error:
Modules were resolved with conflicting cross-version suffixes in ProjectRef(//my project path io.spray:spray-json _2.10, _2.12
[error] java.lang.RuntimeException: Conflicting cross-version suffixes in: io.spray:spray-json
I dont have spray-json explicitly in my build.sbt and it doesn’t seem to appear in sbt evicted out put.
The Scala version used by the sbt plugin is independent of the Scala version used by the libraries within your own project. For sbt plugins, the Scala version depends on the version of sbt you are using: Scala 2.10 for sbt 0.13.x, and Scala 2.12 for sbt 1.x. There was never an sbt version that used Scala 2.11.
Ordinarily, you should not need to specify the sbtVersion or scalaVersion in your plugin dependency. Write it like this:
Thanks for the help, however if I try to let sbt figure it out automatically with just: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.15")
I receive this error: sbt.librarymanagement.ResolveException: Error downloading com.typesafe.play:sbt-plugin;sbtVersion=1.0;scalaVersion=2.12:2.5.15
From your reply I assume the scalaVersion is set to 2.12 because the sbt is 1.3.0.
The error could could come from a missing resolver. The current resolved locations are: