Skip to content

Releases: sbt/sbt-dynver

5.1.0

12 Oct 17:55
v5.1.0
fda1e02
Compare
Choose a tag to compare

sbt-dynver 5.1.0 is cross published to:

sbt Version Published
1.x
2.0.0-M2

sbt 2.x migration

behind the scene

new contributors

Full Changelog: v5.0.1...v5.1.0

5.0.1

02 May 02:51
v5.0.1
861a11a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.0.0...v5.0.1

5.0.0

23 Apr 20:37
v5.0.0
c463935
Compare
Choose a tag to compare

About sbt-dynver

sbt-dynver is an sbt plugin, originally developed by Dale Wijnand (@dwijnand) in 2016, to dynamically set the version of an sbt build based on git.

sbt-dynver is published to Maven Central for sbt 1.x for both the traditional POM-inconsistent style (sbt-dynver-5.0.0.pom) and POM-consistent style (sbt-dynver_2.12_1.0-5.0.0.pom).

Change with compatibility implications

Fixes

Behind the scene

New Contributors

Full Changelog: v4.1.1...v5.0.0

5.0.0-M3

01 Feb 09:41
463749d
Compare
Choose a tag to compare
5.0.0-M3 Pre-release
Pre-release

Changes

v5.0.0-M2...v5.0.0-M3

5.0.0-M2

14 Jan 12:03
961a143
Compare
Choose a tag to compare
5.0.0-M2 Pre-release
Pre-release

Changes

v5.0.0-M1...v5.0.0-M2

5.0.0-M1

14 Jan 09:43
8f0432c
Compare
Choose a tag to compare
5.0.0-M1 Pre-release
Pre-release

Changes

v4.1.1...v5.0.0-M1

4.1.1

30 Jun 20:23
bf36558
Compare
Choose a tag to compare

Changes

v4.1.0...4.1.1

4.1.0

29 Jun 13:08
Compare
Choose a tag to compare

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

Changelog

v4.0.0...4.1.0

4.0.0

18 Jun 10:43
d527633
Compare
Choose a tag to compare

Breaking changes

  • Change the version scheme of untagged versions so they are never considered newer than tagged versions. For instance, previously the 3rd commit in a repo would generate a version like 3-1234abcd; that is now 0.0.0+3-1234abcd. #99/#100 by @Atry!

Other changes

  • Introduces dynverSeparator to change the separator string between a version, its HEAD commit distance & SHA, and the timestamp. For instance, for Docker-compatible version strings set dynverSeparator in ThisBuild := "-". #5/#91 by @jroper!
  • Fix dynverGitPreviousStableVersion to use the same tag matching semantics the rest of sbt-dynver uses. #104 by @2m!
  • Introduces dynverVTagPrefix to (finally?) allow tags to not be 'v'-prefixed. Set dynverVTagPrefix in ThisBuild := false to make this change. #108/#110 by @dwijnand

v3.3.0...v3.4.0

3.3.0

20 Feb 11:22
v3.3.0
1a515d6
Compare
Choose a tag to compare
  • Support dynverSonatypeSnapshots in dynver, dynverAssertVersion, and dynverCheckVersion. #89/#90

v3.2.0...v3.3.0