Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
tastybento 2019-11-05 23:15:30 -08:00
commit 02ab3a04cf
2 changed files with 15 additions and 8 deletions

View File

@ -2,18 +2,16 @@ language: java
sudo: false sudo: false
addons: addons:
sonarcloud: sonarcloud:
organization: "tastybento-github" organization: "bentobox-world"
token: token:
secure: $SONAR_TOKEN secure: $SONAR_TOKEN
branches:
- develop
- master
jdk: jdk:
- openjdk8 - openjdk8
script: script:
# JaCoCo is used to have code coverage, the agent has to be activated # JaCoCo is used to have code coverage, the agent has to be activated
#- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent org.jacoco:jacoco-maven-plugin:report package sonar:sonar #- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent org.jacoco:jacoco-maven-plugin:report package sonar:sonar
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=BentoBoxWorld_AcidIsland
cache: cache:
directories: directories:

17
pom.xml
View File

@ -112,14 +112,14 @@
<id>sonar</id> <id>sonar</id>
<properties> <properties>
<sonar.host.url>https://sonarcloud.io</sonar.host.url> <sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>tastybento-github</sonar.organization> <sonar.organization>bentobox-world</sonar.organization>
</properties> </properties>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.sonarsource.scanner.maven</groupId> <groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId> <artifactId>sonar-maven-plugin</artifactId>
<version>3.4.1.1168</version> <version>3.6.0.1398</version>
<executions> <executions>
<execution> <execution>
<phase>verify</phase> <phase>verify</phase>
@ -183,6 +183,15 @@
<version>${bentobox.version}</version> <version>${bentobox.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- Static analysis -->
<!-- We are using Eclipse's annotations. If you're using IDEA, update
your project settings to take these into account for in real time static
analysis -->
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.annotation</artifactId>
<version>2.2.200</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
@ -311,8 +320,8 @@
<configuration> <configuration>
<append>true</append> <append>true</append>
<excludes> <excludes>
<!-- This is required to prevent Jacoco from adding synthetic fields <!-- This is required to prevent Jacoco from adding
to a JavaBean class (causes errors in testing) --> synthetic fields to a JavaBean class (causes errors in testing) -->
<exclude>**/*Names*</exclude> <exclude>**/*Names*</exclude>
</excludes> </excludes>
</configuration> </configuration>