sbt / sbt-dynver

An sbt plugin to dynamically set your version from git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to activate SonatypeSnapshots?

mrt181 opened this issue · comments

I have tried this but it does not work:

lazy val root = (project in file("."))
  .enablePlugins(JavaAppPackaging, BuildInfoPlugin, DynVerPlugin)
  .settings(
    name := "apiScala",
    buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
    dynverSonatypeSnapshots := true,
    commonSettings,
    compilerSettings
)

but sbt version returns a version missing the suffix 1.2.0+20-4184321d+20181023-2220 with uncommited changes
git describe --dirty returns this 1.2.0-20-g4184321-dirty

Set dynverSonatypeSnapshots in ThisBuild := true.