diff --git a/build.sbt b/build.sbt index 9ae7a74..756962a 100644 --- a/build.sbt +++ b/build.sbt @@ -30,7 +30,6 @@ lazy val compilerOptions = Seq( lazy val commonSettings = Defaults.coreDefaultSettings ++ Seq( organization := "com.snowplowanalytics", - version := "0.3.1", scalaVersion := "2.12.10", scalacOptions ++= compilerOptions, javacOptions ++= Seq("-source", "1.8", "-target", "1.8") @@ -54,6 +53,10 @@ dockerCommands := dockerCommands.value.map{ case e => e } +import sbtdynver.DynVerPlugin.autoImport._ +ThisBuild / dynverVTagPrefix := false // Otherwise git tags required to have v-prefix +ThisBuild / dynverSeparator := "-" // to be compatible with docker + lazy val root: Project = project .in(file(".")) .settings(commonSettings) diff --git a/project/plugins.sbt b/project/plugins.sbt index ef71e26..219f12a 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,2 +1,3 @@ addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0") addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.12") +addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")