Skip to content

Releases: Widen/gradle-versioning

Rename printVersion task to version

28 Feb 20:16
2b947d9
Compare
Choose a tag to compare

Changed

  • Renamed printVersion task to version.

Lazy version object

28 Feb 20:06
c07ac8e
Compare
Choose a tag to compare

Changed

  • Change from generating a string up front to generating it upon first request using a lazy object and toString().

Lazy version object

28 Feb 19:53
ca5713e
Compare
Choose a tag to compare
Lazy version object Pre-release
Pre-release

Changed

  • Change from generating a string up front to generating it upon first request using a lazy object and toString().

0.3.3: Default to commit hash

30 Jul 15:17
3a57c4a
Compare
Choose a tag to compare

Added

  • The plugin now defaults to using the current commit hash as the version if no matching tags are found in the current branch. If you liked the old behavior, you can set useCommitHashDefault to false to disable this feature.

0.3.2: Bugfixes

28 Jun 21:29
caf851a
Compare
Choose a tag to compare

Fixed

  • Fix regression in 0.3.1 resulting in the version being resolved to 0.0.0 for any subproject.

Added

  • Much better error handling and logging for debugging problems with the plugin.

0.3.1: Public release + minor bugfixes

28 Jun 21:01
ff558ec
Compare
Choose a tag to compare

This plugin has now been open-sourced and publicly available in the public Gradle repo.

Fixed

  • Determine and specify the project Git directory better.
  • Override the GIT_DIR environment variable so that it is not inherited from the parent process.

0.3.0: Support initial development

12 Jan 16:05
72eb9e4
Compare
Choose a tag to compare

Added

  • You can now specify an initial version to use for a new project with no releases. The default "initial version" is 0.0.0. This helps a lot with setting up a new project with the plugin.

0.2.2: This hash is just 7 characters long...

08 Jan 19:34
568f425
Compare
Choose a tag to compare

Fixed

  • Specify to git describe to always use 7 character long commit hash abbreviations so that different Git versions, config, or, environments do not result in different version numbers with different-length commit hashes.

0.2.1: Tags with dashes

20 Dec 20:25
d028083
Compare
Choose a tag to compare

Fixed

  • Fix an issue where generating a version string from a Git tag containing a dash (-) would replace the dash inside the tag with + instead of putting it between the tag name and the version metadata.

0.2.0: Give the settings to the people

22 Nov 19:45
166e089
Compare
Choose a tag to compare

This release makes the plugin usable, configurable, and more efficient. It is now "good enough" to actually start using it in other projects, though naturally it is not considered fully stable until version 1.0.0.

Added

  • Added some basic tests to verify git describe parsing works.
  • A new Settings object is available that can be configured in a build file using a versioning {} block.
  • The plugin now uses the previously released version of itself for determining its own versions. This still has to be updated manually for now.

Changed

  • The version is now calculated and applied at the end of parsing the build.gradle instead of the beginning. If you set version manually it will be overwritten by the plugin unless the plugin cannot determine the version. Then the previous value is left as a fallback.

Fixed

  • Fixed a null pointer exception when attempting to parse null as a Git describe string.