mirror of https://github.com/sbt/sbt.git
Merge pull request #179 from xuwei-k/issue-178
fix incorrect eviction warning message
This commit is contained in:
commit
19054834b7
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue