Releases: Widen/gradle-versioning
Releases · Widen/gradle-versioning
Rename printVersion task to version
Lazy version object
Changed
- Change from generating a string up front to generating it upon first request using a lazy object and toString().
Lazy version object
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
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
tofalse
to disable this feature.
0.3.2: Bugfixes
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
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
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...
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
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
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 aversioning {}
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 setversion
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.