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
|
||||
|
||||
addons:
|
||||
sonarcloud:
|
||||
organization: "ethauvin-github"
|
||||
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
- openjdk12
|
||||
|
@ -9,9 +13,6 @@ before_install:
|
|||
|
||||
after_success:
|
||||
- |
|
||||
if [ "${TRAVIS_PULL_REQUEST}" != "false" ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
|
||||
./gradlew sonarqube \
|
||||
-Dsonar.github.pullRequest=${TRAVIS_PULL_REQUEST} \
|
||||
-Dsonar.github.oauth=${SONAR_GITHUB} \
|
||||
-Dsonar.login=${SONAR_TOKEN}
|
||||
if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
|
||||
./gradlew sonarqube
|
||||
fi
|
||||
|
|
|
@ -69,6 +69,7 @@ test {
|
|||
}
|
||||
|
||||
compileJava {
|
||||
dependsOn('incrementBuildMeta')
|
||||
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
|
||||
}
|
||||
|
||||
|
@ -99,8 +100,10 @@ incrementBuildMeta {
|
|||
}
|
||||
}
|
||||
|
||||
compileJava {
|
||||
dependsOn('incrementBuildMeta')
|
||||
sonarqube {
|
||||
properties {
|
||||
property "sonar.projectKey", "ethauvin_mobibot"
|
||||
}
|
||||
}
|
||||
|
||||
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