summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2015-02-27 16:05:29 +1100
committermd_5 <git@md-5.net>2015-02-27 16:05:29 +1100
commita9ab8a946d90f34408f811e63e862c37343e96ac (patch)
tree10f878909b34ad0277b5e224ff589417381bbbbc
parente7b75203b8df30edcabc7c636e73db1c740c2951 (diff)
downloadbuildtools-a9ab8a946d90f34408f811e63e862c37343e96ac.tar
buildtools-a9ab8a946d90f34408f811e63e862c37343e96ac.tar.gz
buildtools-a9ab8a946d90f34408f811e63e862c37343e96ac.tar.lz
buildtools-a9ab8a946d90f34408f811e63e862c37343e96ac.tar.xz
buildtools-a9ab8a946d90f34408f811e63e862c37343e96ac.zip
Include version / build number into BuildTools jar.
-rw-r--r--pom.xml20
1 files changed, 19 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index a3e8a0a..6a226f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,7 @@
<description></description>
<properties>
+ <build.number>unknown</build.number>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@@ -66,6 +67,22 @@
<finalName>${project.name}</finalName>
<plugins>
<plugin>
+ <groupId>net.md-5</groupId>
+ <artifactId>scriptus</artifactId>
+ <version>0.2</version>
+ <configuration>
+ <format>git-${project.name}-%s-${build.number}</format>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <goals>
+ <goal>describe</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
@@ -81,7 +98,8 @@
<configuration>
<archive>
<manifestEntries>
- <Main-Class>org.spigotmc.builder.Builder</Main-Class>
+ <Main-Class>org.spigotmc.builder.Builder</Main-Class>
+ <Implementation-Version>${describe}</Implementation-Version>
</manifestEntries>
</archive>
</configuration>