Skip to content

Releases: sbt/sbt-dynver

5.1.1

Choose a tag to compare

@github-actions github-actions released this 25 Jun 13:06
v5.1.1
d54b5fc

sbt-dynver 5.1.1 is cross published to:

sbt Version Published
1.x
2.x

about sbt-dynver

sbt-dynver is an sbt plugin, originally developed by @dwijnand in 2016, to dynamically set the version from git.

sbt 2.x migration

updates

behind the scene

v5.1.0...5.1.1

5.1.0

Choose a tag to compare

@eed3si9n eed3si9n released this 12 Oct 17:55
v5.1.0
fda1e02

sbt-dynver 5.1.0 is cross published to:

sbt Version Published
1.x
2.0.0-M2
2.0.0-M4

sbt 2.x migration

behind the scene

new contributors

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

5.0.1

Choose a tag to compare

@eed3si9n eed3si9n released this 02 May 02:51
v5.0.1
861a11a

What's Changed

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

5.0.0

Choose a tag to compare

@eed3si9n eed3si9n released this 23 Apr 20:37
v5.0.0
c463935

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

5.0.0-M3 Pre-release
Pre-release

Choose a tag to compare

@dwijnand dwijnand released this 01 Feb 09:41
463749d

Changes

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

5.0.0-M2

5.0.0-M2 Pre-release
Pre-release

Choose a tag to compare

@dwijnand dwijnand released this 14 Jan 12:03
961a143

Changes

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

5.0.0-M1

5.0.0-M1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Jan 09:43
8f0432c

Changes

v4.1.1...v5.0.0-M1

4.1.1

Choose a tag to compare

@dwijnand dwijnand released this 30 Jun 20:23
bf36558

Changes

v4.1.0...4.1.1

4.1.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 13:08

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

Choose a tag to compare

@dwijnand dwijnand released this 18 Jun 10:43
d527633

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