aboutsummaryrefslogtreecommitdiff
path: root/zersion.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'zersion.sbt')
-rw-r--r--zersion.sbt9
1 files changed, 8 insertions, 1 deletions
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)