SBT警告可能不兼容的Scala版本,这些版本没有出现在依赖图中

时间:2013-11-26 10:53:11

标签: scala sbt

sbt update后我

> update
[info] Updating {file:/home/aromanov/IdeaProjects/scalan-lite/}default-4e7ca5...
[info] Resolving org.scala-lang#scala-actors;2.10.1 ...
[info] Done updating.
[warn] Potentially incompatible versions of dependencies of {file:/home/aromanov/IdeaProjects/scalan-lite/}default-4e7ca5:
[warn]    org.scala-lang: 2.10.3, 2.10.0

对此的一般建议是使用sbt-dependency-graph,但它不显示任何2.10.0依赖项:

> dependency-tree
[info] com.huawei:scalan-lite_2.10:0.1
[info]   +-com.chuusai:shapeless_2.10.2:2.0.0-M1
[info]   | +-org.scala-lang:scala-compiler:2.10.3
[info]   | | +-org.scala-lang:scala-library:2.10.3
[info]   | | +-org.scala-lang:scala-reflect:2.10.3
[info]   | |   +-org.scala-lang:scala-library:2.10.3
[info]   | |   
[info]   | +-org.scala-lang:scala-library:2.10.3
[info]   | 
[info]   +-org.scala-lang:scala-library:2.10.3
[info]   

在我的依赖项中似乎没有任何依赖2.10.0的内容:

libraryDependencies += "org.scalatest" %% "scalatest" % "2.0" % "test"

libraryDependencies += "junit" % "junit" % "4.10" % "test"

libraryDependencies ++= Seq(
  //"com.chuusai" % "shapeless" % "2.0.0-M1" cross CrossVersion.full
  "com.chuusai" % "shapeless_2.10.2" % "2.0.0-M1" // alternatively ...
)

libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.10.1" % "test"

如何找到2.10.0依赖的来源?

1 个答案:

答案 0 :(得分:3)

正如@Seth Tisue评论的那样,sbt 0.13不再显示此警告。该行为在sbt 0.12中被视为错误#709,并在9个月前修复。