aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.sbt5
-rw-r--r--project/plugins.sbt2
2 files changed, 7 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 48249c9..02283ab 100644
--- a/build.sbt
+++ b/build.sbt
@@ -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")