Is it a good idea to fix SBT eviction warning messages?
By overriding the version of the evicted libraries to the latest. Would that force SBT to stick with the overridden version for life? Would SBT still notify us that there are newer versions in the future?
Example of eviction warnings (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
Remove the warnings by adding this at the end of build.sbt. Following the instructions in SBT Documentation Eviction warning
dependencyOverrides ++= Set(
"org.postgresql" % "postgresql" % "9.4.1208.jre7",
"com.chuusai" %% "shapeless" % "2.3.2",
"jline" % "jline" % "2.12.1"
)