Skip to content

Commit cae8b10

Browse files
committed
fix JDK 11 jobs
1 parent 9100116 commit cae8b10

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build.sbt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,14 @@ inThisBuild(
287287
commands += Command.command(preRelease) { state =>
288288
// Show Compat version, Scala version, and Java Version
289289
val jvmVersion = Version.parse(sys.props("java.specification.version")).get.minor
290-
val tagVersion = releaseVersion.get
291-
println(
292-
s"Releasing $tagVersion with Scala ${travisScalaVersion.get} on Java version $jvmVersion.")
293-
294-
// Copy pgp stuff
295-
"admin/pre-release.sh" ! state.globalLogging.full
296-
290+
releaseVersion match {
291+
case Some(tagVersion) =>
292+
println(
293+
s"Releasing $tagVersion with Scala ${travisScalaVersion.get} on Java version $jvmVersion.")
294+
// Copy pgp stuff
295+
"admin/pre-release.sh" ! state.globalLogging.full
296+
case None =>
297+
}
297298
state
298299
},
299300
commands += Command.command("scalafmt-test") { state =>

0 commit comments

Comments
 (0)