From 5920cd71203b023085523ce28b1a81554dca7728 Mon Sep 17 00:00:00 2001 From: Ian Streeter Date: Wed, 15 Dec 2021 18:28:52 +0000 Subject: [PATCH] Use sbt dyn ver plugin (close #55) --- build.sbt | 5 ++++- project/plugins.sbt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index eb1856d..bfd4da4 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") @@ -53,6 +52,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")