How can I use Sorm in Scala 2.11.6, in compile I am getting the following errors
[error] Modules were resolved with conflicting cross-version suffixes in ...
[error] org.scala-lang.modules:scala-xml _2.11, _2.12.0-M1
[error] org.scala-lang.modules:scala-parser-combinators _2.11, _2.12.0-M1
in my build.sbt I am using...
name := "api-psi"
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
"com.h2database" % "h2" % "1.4.177",
"org.sorm-framework" % "sorm" % "0.3.18",
"org.webjars" % "bootstrap" % "3.3.5",
specs2 % Test
)
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
routesGenerator := InjectedRoutesGenerator
I am trying this example: https://www.youtube.com/watch?v=eNCerkVyQdcI , but at no time he imported sorm...
Folks, I managed to solve...
To fix the inconsistency you should to clear your ivy cache:
~/.ivy2/cache
However you also want to fix the version of scala-compiler use, and you want it to match your configured scalaVersion:
dependencyOverrides += "org.scala-lang" % "scala-compiler" % scalaVersion.value
Now on my SBT
name := """api-my-psi"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
jdbc,
cache,
ws,
specs2 % Test,
"org.sorm-framework" % "sorm" % "0.3.18",
"org.webjars" % "webjars-play_2.11" % "2.4.0-1",
"org.webjars" % "bootstrap" % "3.3.5"
)
dependencyOverrides += "org.scala-lang" % "scala-compiler" % scalaVersion.value
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
routesGenerator := InjectedRoutesGenerator