aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.sbt4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index d61b82e..4b47ee3 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,2 +1,6 @@
sbtPlugin := true
name := "sbt-gpg"
+version in ThisBuild := {
+ import sys.process._
+ ("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim
+}