5
修復SBT驅逐警告消息是否是一個好主意?SBT:是否明智地解決圖書館依賴性的驅逐警告
通過重寫最新版本的驅逐庫。這是否會迫使SBT堅持終生使用的版本? SBT仍然會通知我們未來會有更新的版本嗎?驅逐警告
實施例(SBT 0.13.13)
[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn] * com.chuusai:shapeless_2.11:1.2.4 -> 2.3.2
[warn] * org.postgresql:postgresql:9.4-1201-jdbc41 -> 9.4.1208.jre7
[warn] * jline:jline:0.9.94 -> 2.12.1
[warn] Run 'evicted' to see detailed eviction warnings
通過在build.sbt的末尾添加該刪除警告。繼SBT文檔Eviction warning
dependencyOverrides ++= Set(
"org.postgresql" % "postgresql" % "9.4.1208.jre7",
"com.chuusai" %% "shapeless" % "2.3.2",
"jline" % "jline" % "2.12.1"
)