4.1.0
Enhancements
Allow arbitrary tag prefixes
Originally the detection of version tags in sbt-dynver simply used the practice of adding a "v" prefix in tag,
such as "v1.2.3". Later, in 4.0.0, support was added to opt-out of the "v" with dynverVTagPrefix
, allowing
projects that never followed this practice to adopt sbt-dynver.
With the release of sbt-dynver 4.1.0, dynverVTagPrefix
has been generalised with dynverTagPrefix
.
You can continue to use dynverVTagPrefix
for the simple opt-out use case:
dynverVTagPrefix in ThisBuild := false
but if your project uses another prefix it now maybe possible for you to use sbt-dynver by setting the new key:
dynverTagPrefix in ThisBuild := "foo-" // our tags have the format foo-<version>, e.g. foo-1.2.3
Setting both to incoherent values will throw an exception at build loading time.
#158 by @eliaslevy/@sideeffffect/@dwijnand
Other changes
Fix dynverAssertTagVersion
Previously when used in onGlobal
it errored with "A setting cannot depend on a task".
#132/#137 by @steinybot/@dwijnand