Merge pull request #4573 from eatkins/java-version-typo

Singularize java version in welcome banner
This commit is contained in:
eugene yokota 2019-03-24 01:34:05 -04:00 committed by GitHub
commit 32c34f9305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -121,6 +121,7 @@ lazy val sbtRoot: Project = (project in file("."))
buildLevelSettings,
minimalSettings,
onLoadMessage := {
val version = sys.props("java.specification.version")
""" __ __
| _____/ /_ / /_
| / ___/ __ \/ __/
@ -128,9 +129,9 @@ lazy val sbtRoot: Project = (project in file("."))
| /____/_.___/\__/
|Welcome to the build for sbt.
|""".stripMargin +
(if (sys.props("java.specification.version") != "1.8")
(if (version != "1.8")
s"""!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| Java versions is ${sys.props("java.specification.version")}. We recommend 1.8.
| Java version is $version. We recommend java 8.
|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!""".stripMargin
else "")
},