加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-16 08:48:39 所属栏目:安全 来源:网络整理
导读:经过更新后我得到了 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 o
经过更新后我得到了

> 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依赖的来源?

解决方法

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读