Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 506 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 506 Bytes

Git Version Extension

Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0.txt

This is a maven extension to set a build version based off of the last git tag.

This is a very naive implementation and does not handle all edge cases.

Usage

Add the following to your .mvn/extensions.xml:

<extensions>
  <extension>
    <groupId>github.benslabbert</groupId>
    <artifactId>git-version-extension</artifactId>
    <version>VERSION</version>
  </extension>
</extensions>