Revert "clarify message on sbt.version mismatch"

This reverts commit 2f4b6f476a.
This commit is contained in:
Dale Wijnand 2019-12-23 21:06:41 +00:00
parent 6f453b2a23
commit 56aa46308b
2 changed files with 3 additions and 3 deletions

View File

@ -827,8 +827,8 @@ object BuiltinCommands {
sbtVersionOpt.foreach(
version =>
if (version != app.id.version()) {
state.log.warn(s"""sbt version mismatch, using: ${app.id
.version()}, in build.properties: "$version".""")
state.log.warn(s"""sbt version mismatch, current: ${app.id
.version()}, in build.properties: "$version", use 'reboot' to use the new value.""")
}
)
}

View File

@ -3,6 +3,6 @@ TaskKey[Unit]("checkSbtVersionWarning") := {
val logging = state.globalLogging
val currVersion = state.configuration.provider.id.version()
val contents = IO.read(logging.backing.file)
assert(contents.contains(s"""sbt version mismatch, using: $currVersion, in build.properties: "1.1.1"."""))
assert(contents.contains(s"""sbt version mismatch, current: $currVersion, in build.properties: "1.1.1", use 'reboot' to use the new value."""))
()
}