From 562099ad1a0c0ecf6696527076dc8741a1baff76 Mon Sep 17 00:00:00 2001 From: Rowanne Kabalan Date: Mon, 4 Dec 2023 14:41:23 +0000 Subject: [PATCH] Fix bug in missing match case --- build.sbt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index aa8c06a3..5d4cc78c 100644 --- a/build.sbt +++ b/build.sbt @@ -9,10 +9,9 @@ val snapshotReleaseType = "snapshot" val snapshotReleaseSuffix = "-SNAPSHOT" lazy val versionSettingsMaybe = { - // Set by e.g. sbt -DRELEASE_TYPE=candidate|snapshot. - // For production release, don't set a RELEASE_TYPE variable sys.props.get("RELEASE_TYPE").map { case v if v == snapshotReleaseType => snapshotReleaseSuffix + case _ => "" }.map { suffix => releaseVersion := { ver => Version(ver).map(_.withoutQualifier.string).map(_.concat(suffix)).getOrElse(versionFormatError(ver))