Skip to content

Commit

Permalink
Build: Retrieve version from Git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tindzk committed Sep 29, 2020
1 parent 33fde9f commit 147279f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
version in ThisBuild := "0.3.0-SNAPSHOT"
version in ThisBuild := {
import sys.process._
val version = Seq("git", "describe", "--tags").!!.trim.tail
println("[info] Setting version to: " + version)
version
}

0 comments on commit 147279f

Please sign in to comment.