aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-02-14 19:09:34 -0800
committerJakob Odersky <jakob@odersky.com>2018-02-14 19:09:34 -0800
commit5a164f54eb2f156aa6a3244d4da83e3571ebd88d (patch)
treea8c836a1d54b571b0a5b80f81ee10f0c3de3db64
parent2cf09f984cf77883497b2de6b0af463cae8e20f1 (diff)
downloadspray-json-derivation-5a164f54eb2f156aa6a3244d4da83e3571ebd88d.tar.gz
spray-json-derivation-5a164f54eb2f156aa6a3244d4da83e3571ebd88d.tar.bz2
spray-json-derivation-5a164f54eb2f156aa6a3244d4da83e3571ebd88d.zip
Add missing plugins required to auto-release
-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")