From 9c665d3c058fced69f97fc889da2e51aa16b165b Mon Sep 17 00:00:00 2001 From: BONNe Date: Tue, 5 Mar 2019 13:16:21 +0200 Subject: [PATCH 1/2] Improve BentoBox pom. Add 3 new profiles: - local profile is activated by default and it will add -SNAPSHOT at the end of version. - develop profile is activated when exist BUILD_NUMBER environment variable and it will add -SNAPSHOT #BUILD+_NUMBER at the end of version - master profile is activated when exists GIT_BRANCH environmnent variable with value origin/master and it will not add anything to version. Also, move most of dependencies versions to properties section. --- pom.xml | 120 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 87 insertions(+), 33 deletions(-) diff --git a/pom.xml b/pom.xml index cdbd48908..68713197e 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ world.bentobox bentobox - 1.4.0-SNAPSHOT + ${revision} BentoBox Expandable Minecraft Spigot plugin for island-type games like SkyBlock or AcidIsland. @@ -44,9 +44,90 @@ UTF-8 UTF-8 1.8 + 1.7.4 + 3.8.0 + + 1.13.2-R0.1-SNAPSHOT + 1.4 + 68f14ec + 2.9.2 + + ${build.version} + + 1.4.0 + + + + + + local + + true + + + ${build.version}-SNAPSHOT + + + + + + develop + + + env.BUILD_NUMBER + + + + + ${build.version}-SNAPSHOT #${env.BUILD_NUMBER} + + + + + + master + + + env.GIT_BRANCH + origin/master + + + + + ${build.version} + + + + sonar + + https://sonarcloud.io + tastybento-github + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.4.1.1168 + + + verify + + sonar + + + + + + + + + spigot-repo @@ -71,14 +152,14 @@ org.spigotmc spigot-api - 1.13.2-R0.1-SNAPSHOT + ${spigot.version} provided org.bstats bstats-bukkit - 1.4 + ${bstats.version} @@ -103,21 +184,21 @@ org.mongodb mongodb-driver - 3.8.0 + ${mongodb.version} com.github.MilkBowl VaultAPI - 68f14ec + ${vault.version} provided me.clip placeholderapi - 2.9.2 + ${placeholder.version} provided @@ -272,31 +353,4 @@ - - - - sonar - - https://sonarcloud.io - tastybento-github - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.4.1.1168 - - - verify - - sonar - - - - - - - - From 718a5b6f32df93473f6fd4ccd7b6efac3469e99e Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Fri, 8 Mar 2019 20:35:23 +0100 Subject: [PATCH 2/2] Slight change to the "build numbered" revision name --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 68713197e..d62662a3e 100644 --- a/pom.xml +++ b/pom.xml @@ -83,7 +83,7 @@ - ${build.version}-SNAPSHOT #${env.BUILD_NUMBER} + ${build.version}-SNAPSHOT-#${env.BUILD_NUMBER}