每次运行dist
生成生产环境时,都会收到以下警告:
[warn] Scala版本由库依赖项之一更新:
[warn] * org.scala-lang:scala-compiler:2.11.0 - > 2.11.8
[warn]要强制scalaVersion,请添加以下内容:
[warn] ivyScala:= ivyScala.value map {_.copy(overrideScalaVersion = true)}
[警告]运行'被驱逐'以查看详细的驱逐警告
现在,在build.sbt
我有以下一行:
scalaVersion := "2.11.12"
当我安装cats
库时,我将其从“2.11.8”更改,因为安装说Scala版本已迁移到2.11.12。
我应该忽略dist
消息吗?
答案 0 :(得分:1)
此处描述了问题:Github sbt
问题仍然存在。
建议:
反映scalaVersion中介,我们可以发出如下警告:
[warn] Some library dependencies use a newer Scala version than this project:
[warn] * org.scala-lang:scala-library:2.12.0 -> 2.12.1
[warn] We recommend you upgrade to the latest scalaVersion patch:
[warn] scalaVersion := 2.12.1 if we know that the mediator is turned on.