When applied, Git-SemVer adds a method gitMavenVersion() to the target project.
The method gitMavenVersion() uses the JGit equivalent of git describe to determine
the git version. If the current repository version is not a tag following the
Semantic Versioning conventions the version is generated as an
feature increment to the previous Git tag and "-SNAPSHOT" to fit the Maven convention.
Apply the plugin using standard Gradle convention:
plugins {
id 'eu.t-systems-mms.git-semver' version '<current version>'
}Set the version of a project by calling:
version gitMavenVersion()This plugin adds a printVersion task, which will echo the project's configured version
to standard-out.
This plugin is made available under the Apache 2.0 License.