From 8168c61ee70d5f1c84f55d6b2605b44bda399f19 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Fri, 16 Aug 2019 13:37:13 +0200 Subject: [PATCH] build: enable sbt-git plugin This allows reading artefact version number from the git tag on CI in release profile instead of hard-coding it in VCS. Signed-off-by: Alexander Bezzubov --- build.sbt | 4 +++- project/plugins.sbt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index eda30d0..308535b 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,9 @@ name := "bblfsh-client" organization := "org.bblfsh" -version := "2.0.0-SNAPSHOT" + +git.useGitDescribe := true +enablePlugins(GitVersioning) scalaVersion := "2.11.11" val libuastVersion = "3.3.1" diff --git a/project/plugins.sbt b/project/plugins.sbt index 2d34032..81fcb5b 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -3,4 +3,5 @@ addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2") addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1") addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.16") +addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3") libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.8.3"