maven-git-versioning/README.md

32 lines
919 B
Markdown
Raw Normal View History

2023-08-02 22:33:04 -07:00
# maven-git-versioning
2023-08-03 03:43:38 -07:00
This plugin seamlessly converts standard "-SNAPSHOT" versions into a more descriptive format, "
2023-08-03 03:46:07 -07:00
-dev-{gitDepth}-{gitHash}", allowing you to gain valuable insights into the exact commit from which each jar was built.
# Usage
```xml
<build>
<plugins>
<plugin>
<groupId>me.braydon</groupId>
<artifactId>git-versioning-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>versioning</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>rainnny-repo-public</id>
<url>https://maven.rainnny.club/public</url>
</pluginRepository>
</pluginRepositories>
```