Why does SBT libraryDependencies %% truncate scalaVersion?

梦想与她 提交于 2019-12-24 03:12:43

问题


In my build.sbt I have the lines

scalaVersion := "2.10.0-M6"

libraryDependencies ++= List(
    "com.typesafe" %% "slick" % "0.11.0",
    "org.slf4j" %% "slf4j-nop" % "1.6.4"
)

running sbt update shows an unresolved dependency exception. When I look at the URL sbt is trying to retrieve for the library, I see it's looking for com.typesafe$slick_2.10;0.11.0.

Why isn't the full ScalaVersion appended? Is there an option I can use to cause it to use the entire version instead of the truncated one?


回答1:


This should work starting with sbt 0.12. See Cross-building at sbt wiki.

"com.typesafe" % "slick" % "0.11.0" cross CrossVersion.full


来源:https://stackoverflow.com/questions/12631948/why-does-sbt-librarydependencies-truncate-scalaversion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!