fix incorrect eviction warning message

This commit is contained in:
xuwei-k 2017-11-02 15:10:05 +09:00
parent 91b56c50db
commit a385a13fa5
2 changed files with 3 additions and 3 deletions

View File

@ -283,7 +283,7 @@ object EvictionWarning {
out += "Scala version was updated by one of library dependencies:"
out ++= (a.scalaEvictions flatMap { _.lines })
out += "To force scalaVersion, add the following:"
out += "\tivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }"
out += "\tscalaModuleInfo ~= (_.map(_.withOverrideScalaVersion(true)))"
}
if (a.directEvictions.nonEmpty || a.transitiveEvictions.nonEmpty) {

View File

@ -93,7 +93,7 @@ class EvictionWarningSpec extends BaseIvySpecification {
"\t* org.scala-lang:scala-library:2.10.3 is selected over 2.10.2",
"",
"To force scalaVersion, add the following:",
"\tivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }",
"\tscalaModuleInfo ~= (_.map(_.withOverrideScalaVersion(true)))",
"Run 'evicted' to see detailed eviction warnings"
)
}
@ -109,7 +109,7 @@ class EvictionWarningSpec extends BaseIvySpecification {
"\t +- com.example:foo:0.1.0 (depends on 2.10.2)",
"",
"To force scalaVersion, add the following:",
"\tivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }",
"\tscalaModuleInfo ~= (_.map(_.withOverrideScalaVersion(true)))",
"Run 'evicted' to see detailed eviction warnings"
)
}