diff --git a/build.gradle b/build.gradle index c658b622..e7824be6 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ buildscript { plugins { id 'idea' - //id "org.sonarqube" version "1.2" + id "org.sonarqube" version "1.2" id 'net.researchgate.release' version '2.3.5' } @@ -43,12 +43,12 @@ idea { } } -//sonarqube { -// properties { -// property "sonar.sourceEncoding", "UTF-8" -// property "sonar.jacoco.reportPath", "${buildDir}/jacoco/test.exec" -// } -//} +sonarqube { + properties { + property "sonar.sourceEncoding", "UTF-8" + property "sonar.jacoco.reportPath", "${buildDir}/jacoco/test.exec" + } +} task checkDockerAuthentication << { // command below return 1 when user is not logged in to Docker Hub diff --git a/travis.sh b/travis.sh index a9823083..07d7f278 100755 --- a/travis.sh +++ b/travis.sh @@ -16,5 +16,5 @@ if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ] GH_SONARQ_PARAMS="jacocoTestReport sonarqube -Dsonar.host.url=$SQ_URL -Dsonar.jdbc.url=$SQ_JDBC_URL -Dsonar.jdbc.driverClassName=org.postgresql.Driver -Dsonar.jdbc.user=$SQ_JDBC_USER -Dsonar.jdbc.password=$SQ_JDBC_PASSWORD" fi -./gradlew --info --stacktrace clean build +./gradlew --info --stacktrace clean build $GH_SONARQ_PARAMS