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

View File

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