From 450786aea3f263cb06a4c1cd4ca821d20e8524a8 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Thu, 2 Aug 2018 23:00:58 +0200 Subject: [PATCH] Maven cleanup, fix readme links --- .travis.yml | 30 +- README.md | 12 +- pom.xml | 433 ++++++++++-------- config.yml => src/main/resources/config.yml | 0 .../main/resources/locales}/de-DE.yml | 0 .../main/resources/locales}/en-GB.yml | 0 .../main/resources/locales}/en-US.yml | 0 .../main/resources/locales}/fr-FR.yml | 0 .../main/resources/locales}/pl-PL.yml | 0 .../main/resources/locales}/vi-VN.yml | 0 .../main/resources/locales}/zh-CN.yml | 0 plugin.yml => src/main/resources/plugin.yml | 2 +- 12 files changed, 250 insertions(+), 227 deletions(-) rename config.yml => src/main/resources/config.yml (100%) rename {locales => src/main/resources/locales}/de-DE.yml (100%) rename {locales => src/main/resources/locales}/en-GB.yml (100%) rename {locales => src/main/resources/locales}/en-US.yml (100%) rename {locales => src/main/resources/locales}/fr-FR.yml (100%) rename {locales => src/main/resources/locales}/pl-PL.yml (100%) rename {locales => src/main/resources/locales}/vi-VN.yml (100%) rename {locales => src/main/resources/locales}/zh-CN.yml (100%) rename plugin.yml => src/main/resources/plugin.yml (87%) mode change 100755 => 100644 diff --git a/.travis.yml b/.travis.yml index 51a50d93c..ac48a866d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,19 @@ language: java sudo: false -install: true -before_install: -- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' - ~/.m2/settings.xml addons: - sonarcloud: - organization: "tastybento-github" - token: - secure: $SONAR_TOKEN - branches: - - develop - - master + sonarcloud: + organization: "tastybento-github" + token: + secure: $SONAR_TOKEN + branches: + - develop + - master jdk: - - oraclejdk8 + - oraclejdk8 script: - - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar - - echo "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" + - mvn clean package -P sonar -B + - echo "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" cache: - directories: - - '$HOME/.m2/repository' - - '$HOME/.sonar/cache' \ No newline at end of file + directories: + - '$HOME/.m2/repository' + - '$HOME/.sonar/cache' diff --git a/README.md b/README.md index b558cb68a..d0d74baf2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ BentoBox ======== -[![Build Status](https://travis-ci.org/tastybento/bskyblock.svg?branch=master)](https://travis-ci.org/tastybento/bskyblock) +[![Build Status](https://ci.codemc.org/buildStatus/icon?job=BentoBoxWorld/bentobox)](https://ci.codemc.org/job/BentoBoxWorld/job/bentobox/) ![Lines Of Code](https://sonarcloud.io/api/project_badges/measure?project=world.bentobox%3Abentobox%3Adevelop&metric=ncloc) ![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=world.bentobox%3Abentobox%3Adevelop&metric=sqale_rating) ![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=world.bentobox%3Abentobox%3Adevelop&metric=reliability_rating) @@ -32,7 +32,7 @@ This is an actively developed project but we are not currently accepting Pull Re Development Builds ================== -Jenkins: https://ci.codemc.org/job/Tastybento/job/bskyblock/ +Jenkins: https://ci.codemc.org/job/BentoBoxWorld/job/bentobox/ API === @@ -47,12 +47,12 @@ Maven dependency: - us.tastybento - bskyblock - FC-0.74 + world.bentobox + bentobox + 0.8.0-SNAPSHOT provided ``` -You can find the javadoc here: https://ci.codemc.org/job/Tastybento/job/bskyblock/javadoc/ +You can find the javadoc here: https://ci.codemc.org/job/BentoBoxWorld/job/bentobox/javadoc/ diff --git a/pom.xml b/pom.xml index 637be2a7f..cc68867fb 100644 --- a/pom.xml +++ b/pom.xml @@ -1,205 +1,232 @@ + - 4.0.0 - world.bentobox - bentobox - jar - BentoBox - - 1.8 - 1.8 - UTF-8 - UTF-8 - 1.7.4 - - - clean package install - - - . - true - ${basedir} - - *.yml - - - - schems - false - ${basedir}/schems - - *.schem - - - - locales - false - ${basedir}/locales - - *.yml - - - - - - org.apache.maven.plugins - maven-resources-plugin - 3.0.2 - - - schematic - - - - - maven-compiler-plugin - 3.5 - - 1.8 - 1.8 - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.0 - - -Xdoclint:none - - - - attach-javadocs - - jar - - - - - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.3.0.603 - - - verify - - sonar - - - - - - org.jacoco - jacoco-maven-plugin - 0.8.1 - - true - - - - prepare-agent - - prepare-agent - - - - prepare-agent-integration - - prepare-agent-integration - - - - jacoco-site - verify - - report - - - - - - - - - - sonar - - https://sonarcloud.io - tastybento-github - - - - - org.jacoco - jacoco-maven-plugin - - - org.sonarsource.scanner.maven - sonar-maven-plugin - - - - - - - - org.spigotmc - spigot-api - 1.13-R0.1-SNAPSHOT - provided - - - org.mockito - mockito-all - 1.10.19 - test - - - org.powermock - powermock-module-junit4 - ${powermock.version} - test - - - org.powermock - powermock-api-mockito - ${powermock.version} - test - - - org.mongodb - mongodb-driver - 3.6.3 - - - - - spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots - - - FC-0.8 + 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 + bentobox + 0.8.0-SNAPSHOT + + BentoBox + BentoBox is an expandable Minecraft Bukkit plugin for island-type games like ASkyBlock or AcidIsland. + https://github.com/BentoBoxWorld/bentobox + 2018 + + + scm:git:https://github.com/BentoBoxWorld/bentobox.git + scm:git:git@github.com:BentoBoxWorld/bentobox.git + https://github.com/BentoBoxWorld/bentobox + + + + jenkins + http://ci.codemc.org/job/BentoBoxWorld/job/bentobox + + + + GitHub + https://github.com/BentoBoxWorld/bentobox/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 + 1.7.4 + + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots + + + + + + org.spigotmc + spigot-api + 1.13-R0.1-SNAPSHOT + provided + + + org.mockito + mockito-all + 1.10.19 + test + + + org.powermock + powermock-module-junit4 + ${powermock.version} + test + + + org.powermock + powermock-api-mockito + ${powermock.version} + test + + + org.mongodb + mongodb-driver + 3.8.0 + + + + + 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-shade-plugin + 3.1.1 + + false + + + + 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.1 + + true + + + + pre-unit-test + + prepare-agent + + + + post-unit-test + + report + + + + + + + + + + sonar + + https://sonarcloud.io + tastybento-github + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 5.1 + + + verify + + sonar + + + + + + + + diff --git a/config.yml b/src/main/resources/config.yml similarity index 100% rename from config.yml rename to src/main/resources/config.yml diff --git a/locales/de-DE.yml b/src/main/resources/locales/de-DE.yml similarity index 100% rename from locales/de-DE.yml rename to src/main/resources/locales/de-DE.yml diff --git a/locales/en-GB.yml b/src/main/resources/locales/en-GB.yml similarity index 100% rename from locales/en-GB.yml rename to src/main/resources/locales/en-GB.yml diff --git a/locales/en-US.yml b/src/main/resources/locales/en-US.yml similarity index 100% rename from locales/en-US.yml rename to src/main/resources/locales/en-US.yml diff --git a/locales/fr-FR.yml b/src/main/resources/locales/fr-FR.yml similarity index 100% rename from locales/fr-FR.yml rename to src/main/resources/locales/fr-FR.yml diff --git a/locales/pl-PL.yml b/src/main/resources/locales/pl-PL.yml similarity index 100% rename from locales/pl-PL.yml rename to src/main/resources/locales/pl-PL.yml diff --git a/locales/vi-VN.yml b/src/main/resources/locales/vi-VN.yml similarity index 100% rename from locales/vi-VN.yml rename to src/main/resources/locales/vi-VN.yml diff --git a/locales/zh-CN.yml b/src/main/resources/locales/zh-CN.yml similarity index 100% rename from locales/zh-CN.yml rename to src/main/resources/locales/zh-CN.yml diff --git a/plugin.yml b/src/main/resources/plugin.yml old mode 100755 new mode 100644 similarity index 87% rename from plugin.yml rename to src/main/resources/plugin.yml index 4ba984c40..7e32e56a9 --- a/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: BentoBox main: world.bentobox.bentobox.BentoBox -version: ${version} +version: ${project.version} api-version: 1.13 authors: [tastybento, Poslovitch]