Skip to content

T-Systems-MMS/gradle-git-semver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git-SemVer Gradle Plugin

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.

Usage

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()

Tasks

This plugin adds a printVersion task, which will echo the project's configured version to standard-out.

License

This plugin is made available under the Apache 2.0 License.

About

Gradle Plugin for Maven compatible semantic versioning

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages