sbt - 禁止 SBT 驱逐警告

标签 sbt version dependency-management suppress-warnings sbt-0.13

自 SBT 0.13.6 起,驱逐现已成为警告。

[warn] Scala version was updated by one of library dependencies:
[warn]  * org.scala-lang:scala-library:(2.10.4, 2.10.1, 2.10.3, 2.10.0) -> 2.10.2
[warn]  * org.scala-lang:scala-compiler:2.10.0 -> 2.10.4
[warn] To force scalaVersion, add the following:
[warn]  ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }
[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn]  * org.apache.httpcomponents:httpclient:(4.1.3, [4.1, 4.2)) -> 4.0.1
[warn]  * org.specs2:specs2_2.10:(1.12.3, 2.3.13) -> 2.4.2
[warn] Run 'evicted' to see detailed eviction warnings

如何抑制这些警告?

最佳答案

这应该可以做到:

evictionWarningOptions in update := EvictionWarningOptions.default.withWarnTransitiveEvictions(false).withWarnDirectEvictions(false).withWarnScalaVersionEviction(false)

关于sbt - 禁止 SBT 驱逐警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27809280/

相关文章:

sbt - IOException : Cannot run program "javac" when "sudo ./sbt/sbt compile" in Spark?

python - 模块 'lxml.etree' 的 RuntimeWarning : compiletime version 2. 6 与运行时版本 2.7 不匹配

class - codeigniter 2.0 fatal error : Class 'Controller' not found in

java - 自动更新 Maven 依赖项

scala - Mono存储库的SBT构建结构

scala - 初学者 Scala SBT 查询

ios - 是否可以仅更新应用商店中的内部版本号?

operating-system - Cargo.toml 操作系统对 Crate 的依赖

go - 类型与 vendor 文件夹不兼容

scala - 如何通过 sbt compile 抑制警告