Skip to content

Commit

Permalink
Use sbt dyn ver plugin (close #55)
Browse files Browse the repository at this point in the history
  • Loading branch information
istreeter committed Dec 15, 2021
1 parent 9f71445 commit d55a3cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit d55a3cb

Please sign in to comment.