forked from LogBlock/LogBlock
Merge branch 'build-version-automation' of github.com:frymaster/LogBlock
This commit is contained in:
49
pom.xml
49
pom.xml
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<build.number>Unknown</build.number>
|
<build.number>${buildNumber}</build.number>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
@@ -78,6 +78,32 @@
|
|||||||
<url>http://repo.kitteh.org/content/groups/public</url>
|
<url>http://repo.kitteh.org/content/groups/public</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>static_build_number</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>!env.BUILD_NUMBER</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<buildNumber>0</buildNumber>
|
||||||
|
<buildDescription>(manually compiled)</buildDescription>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>dynamic_build_number</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>env.BUILD_NUMBER</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<buildNumber>${env.BUILD_NUMBER}</buildNumber>
|
||||||
|
<buildDescription>(build #${env.BUILD_NUMBER})</buildDescription>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.name}</finalName>
|
<finalName>${project.name}</finalName>
|
||||||
@@ -97,6 +123,27 @@
|
|||||||
<target>1.6</target>
|
<target>1.6</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>1.9.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>regex-property</id>
|
||||||
|
<goals>
|
||||||
|
<goal>regex-property</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<name>minecraft.plugin.version</name>
|
||||||
|
<value>${project.version} ${buildDescription}</value>
|
||||||
|
<regex>[0-9\.]+ \(.+\)</regex>
|
||||||
|
<replacement>${project.version}</replacement>
|
||||||
|
<failIfNoMatch>false</failIfNoMatch>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name: ${project.name}
|
name: ${project.name}
|
||||||
version: '1.94'
|
version: '${minecraft.plugin.version}'
|
||||||
author: DiddiZ
|
author: DiddiZ
|
||||||
authors: [md_5, ammar2, frymaster]
|
authors: [md_5, ammar2, frymaster]
|
||||||
website: http://dev.bukkit.org/server-mods/logblock/
|
website: http://dev.bukkit.org/server-mods/logblock/
|
||||||
|
Reference in New Issue
Block a user