Include a version.properties in maven build

This commit is contained in:
Shaun Bennett 2016-01-20 11:57:21 -05:00
parent 8017da9413
commit 8977735baf
4 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
build.git=${describe}
build.date=${timestamp}
build.user=${user.name}

View File

@ -0,0 +1,3 @@
build.git=${describe}
build.date=${timestamp}
build.user=${user.name}

View File

@ -19,7 +19,9 @@
<directory/> <directory/>
<includes> <includes>
<include>plugin.yml</include> <include>plugin.yml</include>
<include>version.properties</include>
</includes> </includes>
<filtering>true</filtering>
</resource> </resource>
</resources> </resources>
<plugins> <plugins>

View File

@ -12,6 +12,8 @@
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
</properties> </properties>
<modules> <modules>