Using GIT to define the plugin version number Change-Id: I9d66f18514bc2f597ea75ea80768520cf54692db
diff --git a/build.sbt b/build.sbt index 8cd77dc..fe1e822 100644 --- a/build.sbt +++ b/build.sbt
@@ -1,13 +1,14 @@ +enablePlugins(GitVersioning) + val gerritApiVersion = "2.13.7" val pluginName = "analytics" -val pluginVersion = "1.1-SNAPSHOT" + +git.useGitDescribe := true lazy val root = (project in file(".")) .settings( name := pluginName, - version := pluginVersion, - scalaVersion := "2.11.8", libraryDependencies ++= Seq(
diff --git a/project/plugins.sbt b/project/plugins.sbt index e43b477..734a503 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt
@@ -1,4 +1,5 @@ logLevel := Level.Warn addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.4") addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0") +addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")