diff options
author | md_5 <git@md-5.net> | 2015-02-27 16:05:29 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-02-27 16:05:29 +1100 |
commit | a9ab8a946d90f34408f811e63e862c37343e96ac (patch) | |
tree | 10f878909b34ad0277b5e224ff589417381bbbbc | |
parent | e7b75203b8df30edcabc7c636e73db1c740c2951 (diff) | |
download | buildtools-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.xml | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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> |