add commit hash to dev builds

This commit is contained in:
RoboMWM 2019-08-11 15:25:11 -07:00
parent 6274cb7536
commit 9e6359b15a
2 changed files with 18 additions and 2 deletions

18
pom.xml
View File

@ -50,6 +50,23 @@
</includes>
</resource>
</resources>
<plugins>
<!-- append git commit hash to version-->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!--Bukkit API-->
@ -97,7 +114,6 @@
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

View File

@ -3,7 +3,7 @@ main: me.ryanhamshire.GriefPrevention.GriefPrevention
softdepend: [Vault, Multiverse-Core, My_Worlds, MystCraft, Transporter, TheUnderground, WorldGuard, WorldEdit, RoyalCommands, MultiWorld, Denizen, Hyperconomy]
dev-url: https://dev.bukkit.org/projects/grief-prevention
loadbefore: [TheUnderground]
version: '${project.version}'
version: '${project.version}-${git.commit.id.abbrev}'
api-version: '1.14'
commands:
abandonclaim: