diff options
-rw-r--r-- | build.sbt | 5 | ||||
-rw-r--r-- | project/plugins.sbt | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,11 @@ name := "spray-json-derivation" organization := "xyz.driver" +version in ThisBuild := { + import sys.process._ + ("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim +} + scalaVersion := "2.12.4" libraryDependencies ++= Seq( diff --git a/project/plugins.sbt b/project/plugins.sbt index a1e2f8a..8d0ff3c 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,5 @@ ivyLoggingLevel := UpdateLogging.Quiet addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.2.0") +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3") +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0") |