mirror of https://github.com/sbt/sbt.git
Tell the user we're setting sbt.version
This commit is contained in:
parent
cd63c1f844
commit
7ac43c5e59
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue