Created
December 7, 2020 12:55
-
-
Save titoaesj/39376a2313d51dd60c78a9f191e34911 to your computer and use it in GitHub Desktop.
Configuração SonarQube Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'org.sonarqube' | |
sonarqube { | |
properties { | |
property "sonar.host.url", "http://localhost:9000" | |
property "sonar.projectKey", "br.com.appfut" | |
property "sonar.projectName", "AppFut" | |
property "sonar.sources", "src/main/java/" | |
property "sonar.binaries", "build" | |
property "sonar.language", "koltin" | |
property "sonar.sourceEncoding", "UTF-8" | |
property "sonar.login", "admin" | |
property "sonar.password", "admin" | |
property "sonar.tests", "src/test/java/, src/androidTest/java/" | |
property "sonar.test.inclusions", "**/*Test*/**" | |
property "sonar.exclusions", '**/*Test*/**,' + | |
'*.json,' + | |
'**/*test*/**,' + | |
'**/*Test*.*,' + | |
'**/R.class,' + | |
'**/R$*.class,' + | |
'**/di/**/*.*,' + | |
'**/contracts/*.*' | |
def unit = fileTree(dir: project.projectDir, includes: ['**/*.exec']).files | |
def ui = fileTree(dir: project.projectDir, includes: ['**/*.ec']).files | |
unit.addAll(ui) | |
def files = unit.join(", ") | |
property "sonar.jacoco.reportPaths", files | |
property "sonar.java.coveragePlugin", "jacoco" | |
property "sonar.junit.reportsPath", "${buildDir}/test-results/testDebugUnitTest" | |
property "sonar.android.lint.report", "${buildDir}/reports/lint-results.xml" | |
property "sonar.coverage.jacoco.xmlReportPaths", "${buildDir}/reports/jacoco/jacocoTestReport/jacocoTestReport.xml" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment