Improve pom.

Removes -#NUM from master build.
Replaces -#0 to -LOCAL if use local build.
This commit is contained in:
BONNe 2019-04-01 10:09:40 +03:00
parent 8d2aecb552
commit bc5cb2068b
2 changed files with 5 additions and 4 deletions

View File

@ -43,7 +43,7 @@
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>0.7.0</build.version>
<build.number>0</build.number>
<build.number>-LOCAL</build.number>
</properties>
<profiles>
@ -56,7 +56,7 @@
</activation>
<properties>
<!-- Override only if necessary -->
<build.number>${env.BUILD_NUMBER}</build.number>
<build.number>-#${env.BUILD_NUMBER}</build.number>
<!-- GIT_BRANCH -->
</properties>
</profile>
@ -71,7 +71,8 @@
<properties>
<!-- Override only if necessary -->
<revision>${build.version}</revision>
<!-- GIT_BRANCH -->
<!-- Empties build number variable.-->
<build.number></build.number>
</properties>
</profile>
</profiles>

View File

@ -1,6 +1,6 @@
name: Challenges
main: world.bentobox.challenges.ChallengesAddon
version: ${version}-#${build.number}
version: ${version}${build.number}
repository: 'BentoBoxWorld/Challenges'
metrics: true