Tell the user we're setting sbt.version

This commit is contained in:
Dale Wijnand 2017-03-16 21:49:15 +00:00 committed by Eugene Yokota
parent cd63c1f844
commit 7ac43c5e59
1 changed files with 3 additions and 2 deletions

View File

@ -79,8 +79,9 @@ final class xMain extends xsbti.AppMain {
val errorMessage = s"WARN: No sbt.version set in project/build.properties, base directory: $baseDir"
try {
if (isSbtProject(baseDir, projectDir)) {
val newBuildPropsLines = s"sbt.version=$sbtVersion" :: buildPropsLines
IO.writeLines(buildProps, newBuildPropsLines)
val line = s"sbt.version=$sbtVersion"
IO.writeLines(buildProps, line :: buildPropsLines)
println(s"Updated file $buildProps setting sbt.version to: $sbtVersion")
} else
println(errorMessage)
} catch {