Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit b5a3931

Browse files
committed
Build: Retrieve version from Git tag
1 parent 79c45c7 commit b5a3931

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

version.sbt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
version in ThisBuild := "0.2.2-SNAPSHOT"
1+
version in ThisBuild := {
2+
import sys.process._
3+
val version = Seq("git", "describe", "--tags").!!.trim.tail
4+
println("[info] Setting version to: " + version)
5+
version
6+
}

0 commit comments

Comments
 (0)