diff options
-rw-r--r-- | version.sbt | 2 | ||||
-rw-r--r-- | zersion.sbt | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/version.sbt b/version.sbt index f608fd1d..421f10f2 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "0.6.1-SNAPSHOT" +version in ThisBuild := "0.6.1" diff --git a/zersion.sbt b/zersion.sbt index 38f6e5e9..28c085c5 100644 --- a/zersion.sbt +++ b/zersion.sbt @@ -1,6 +1,13 @@ // This file has a sensitive filename. It MUST be loaded after version.sbt, so it can rely in sbt-release version // Even while the name seems a typo, that "ensures" that it will be loaded as expected. +import VersionWithSHA._ -version in ThisBuild := VersionWithSHA.kamonVersionWithSHA((version in ThisBuild).value) +version in ThisBuild := { + val currentVersion = (version in ThisBuild).value + if(kamonIsSnapshot(currentVersion)) + kamonVersionWithSHA(currentVersion) + else + currentVersion +} isSnapshot in ThisBuild := VersionWithSHA.kamonIsSnapshot((version in ThisBuild).value) |