From 01dd6597d47a6e6633d1defd05398027eb02f30d Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 30 Oct 2019 16:16:54 -0700 Subject: [PATCH] Added sonarcloud to POM. --- .travis.yml | 3 - pom.xml | 353 ++++++++++++++++++++++++++++++---------------------- 2 files changed, 206 insertions(+), 150 deletions(-) diff --git a/.travis.yml b/.travis.yml index 364665d..d93a2d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,6 @@ addons: organization: "bentobox-world" token: secure: $SONAR_TOKEN - branches: - - develop - - master jdk: - openjdk8 - openjdk11 diff --git a/pom.xml b/pom.xml index 3fb5302..af9cc91 100644 --- a/pom.xml +++ b/pom.xml @@ -1,20 +1,20 @@ - 4.0.0 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - world.bentobox - level + world.bentobox + level ${revision} - Level - Level is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like SkyBlock or AcidIsland. - https://github.com/BentoBoxWorld/Level - 2017 + Level + Level is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like SkyBlock or AcidIsland. + https://github.com/BentoBoxWorld/Level + 2017 - + tastybento tastybento@bentobox.world -8 @@ -23,35 +23,35 @@ - - - scm:git:https://github.com/BentoBoxWorld/Level.git - scm:git:git@github.com:BentoBoxWorld/Level.git - https://github.com/BentoBoxWorld/Level - - - jenkins - http://ci.codemc.org/job/BentoBoxWorld/job/Level - + + scm:git:https://github.com/BentoBoxWorld/Level.git + scm:git:git@github.com:BentoBoxWorld/Level.git + https://github.com/BentoBoxWorld/Level + - - GitHub - https://github.com/BentoBoxWorld/Level/issues - + + jenkins + http://ci.codemc.org/job/BentoBoxWorld/job/Level + - - - codemc-snapshots - https://repo.codemc.org/repository/maven-snapshots - - - codemc-releases - https://repo.codemc.org/repository/maven-releases - - + + GitHub + https://github.com/BentoBoxWorld/Level/issues + - + + + codemc-snapshots + https://repo.codemc.org/repository/maven-snapshots + + + codemc-releases + https://repo.codemc.org/repository/maven-releases + + + + UTF-8 UTF-8 1.8 @@ -66,13 +66,14 @@ -LOCAL 1.8.0 - + - - + + ci @@ -85,10 +86,14 @@ - - - - + + + + master @@ -99,26 +104,51 @@ ${build.version} - + + + sonar + + https://sonarcloud.io + bentobox-world + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + + 3.6.0.1398 + + + verify + + sonar + + + + + + + - - - - spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots - - - codemc-repo - https://repo.codemc.org/repository/maven-public/ - - - codemc-public - https://repo.codemc.org/repository/maven-public/ - - + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots + + + codemc-repo + https://repo.codemc.org/repository/maven-public/ + + + codemc-public + https://repo.codemc.org/repository/maven-public/ + + @@ -155,99 +185,128 @@ - + - + - + ${project.name}-${revision}${build.number} - - clean package - - - src/main/resources - true - - - src/main/resources/locales - ./locales - false - - - - - org.apache.maven.plugins - maven-clean-plugin - 3.1.0 - - - org.apache.maven.plugins - maven-resources-plugin - 3.1.0 - - - org.apache.maven.plugins - maven-compiler-plugin - 3.7.0 - - ${java.version} - ${java.version} - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.0 - - - org.apache.maven.plugins - maven-jar-plugin - 3.1.0 - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.1 - - public - false - -Xdoclint:none - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-install-plugin - 2.5.2 - - - org.apache.maven.plugins - maven-deploy-plugin - 2.8.2 - - - + + clean package + + + src/main/resources + true + + + src/main/resources/locales + ./locales + false + + + + + org.apache.maven.plugins + maven-clean-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-resources-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-compiler-plugin + 3.7.0 + + ${java.version} + ${java.version} + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.0 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.0.1 + + public + false + -Xdoclint:none + + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-install-plugin + 2.5.2 + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + + org.jacoco + jacoco-maven-plugin + 0.8.3 + + true + + + **/*Names* + + + + + pre-unit-test + + prepare-agent + + + + post-unit-test + + report + + + + + + \ No newline at end of file