Skip to content

Commit

Permalink
Improve pom.
Browse files Browse the repository at this point in the history
Removes -#NUM from master build.
Replaces -#0 to -LOCAL if use local build.
  • Loading branch information
BONNe committed Apr 1, 2019
1 parent 8d2aecb commit bc5cb20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/addon.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Challenges
main: world.bentobox.challenges.ChallengesAddon
version: ${version}-#${build.number}
version: ${version}${build.number}
repository: 'BentoBoxWorld/Challenges'
metrics: true

Expand Down

0 comments on commit bc5cb20

Please sign in to comment.