From 147279fb1c991577d0f1814d4742025f05d93c96 Mon Sep 17 00:00:00 2001 From: Tim Nieradzik Date: Tue, 29 Sep 2020 18:46:31 +0100 Subject: [PATCH] Build: Retrieve version from Git tag --- version.sbt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/version.sbt b/version.sbt index 87c01ed..60b60a5 100644 --- a/version.sbt +++ b/version.sbt @@ -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 +}