From 5a164f54eb2f156aa6a3244d4da83e3571ebd88d Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Wed, 14 Feb 2018 19:09:34 -0800 Subject: Add missing plugins required to auto-release --- build.sbt | 5 +++++ project/plugins.sbt | 2 ++ 2 files changed, 7 insertions(+) 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") -- cgit v1.2.3