Added sonar.projectKey to build.grade.
This commit is contained in:
parent
dcc21a5544
commit
b68048a2af
3 changed files with 11 additions and 9 deletions
11
.travis.yml
11
.travis.yml
|
@ -1,5 +1,9 @@
|
||||||
language: java
|
language: java
|
||||||
|
|
||||||
|
addons:
|
||||||
|
sonarcloud:
|
||||||
|
organization: "ethauvin-github"
|
||||||
|
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- oraclejdk8
|
||||||
- openjdk12
|
- openjdk12
|
||||||
|
@ -9,9 +13,6 @@ before_install:
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
if [ "${TRAVIS_PULL_REQUEST}" != "false" ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
|
if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
|
||||||
./gradlew sonarqube \
|
./gradlew sonarqube
|
||||||
-Dsonar.github.pullRequest=${TRAVIS_PULL_REQUEST} \
|
|
||||||
-Dsonar.github.oauth=${SONAR_GITHUB} \
|
|
||||||
-Dsonar.login=${SONAR_TOKEN}
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -69,6 +69,7 @@ test {
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
|
dependsOn('incrementBuildMeta')
|
||||||
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
|
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,8 +100,10 @@ incrementBuildMeta {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava {
|
sonarqube {
|
||||||
dependsOn('incrementBuildMeta')
|
properties {
|
||||||
|
property "sonar.projectKey", "ethauvin_mobibot"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(SpotBugsTask) {
|
tasks.withType(SpotBugsTask) {
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
sonar.projectKey=ethauvin_semver
|
|
||||||
sonar.sourceEncoding=UTF-8
|
|
Loading…
Add table
Add a link
Reference in a new issue