mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
SonarCloud add-on to gradle
This commit is contained in:
parent
4c7636b0c2
commit
36ee6e00db
@ -1,5 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "jacoco"
|
||||
id "org.sonarqube" version "2.2"
|
||||
id "net.ltgt.apt" version "0.19"
|
||||
id "com.github.johnrengelman.shadow" version "4.0.2"
|
||||
}
|
||||
@ -16,6 +18,7 @@ subprojects {
|
||||
apply plugin: "maven"
|
||||
apply plugin: "net.ltgt.apt"
|
||||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
apply plugin: "jacoco"
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
@ -105,3 +108,10 @@ subprojects {
|
||||
testArtifacts testJar
|
||||
}
|
||||
}
|
||||
|
||||
sonarqube {
|
||||
properties {
|
||||
property "sonar.projectName", "Java Gradle-based project analyzed on SonarCloud using Travis"
|
||||
property "sonar.projectKey", "com.sonarqube.examples.java-gradle-travis-project"
|
||||
}
|
||||
}
|
@ -7,5 +7,5 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
fi
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
mvn org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
|
||||
gradle sonarqube
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user