2017-11-26 09:32:33 -06:00
|
|
|
apply plugin: 'org.sonarqube'
|
|
|
|
|
|
|
|
sonarqube {
|
|
|
|
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
properties {
|
2018-11-23 05:38:55 -06:00
|
|
|
def libraries = project.android.sdkDirectory.getPath() + "/platforms/android-28/android.jar"
|
2017-11-26 09:32:33 -06:00
|
|
|
|
2018-11-23 05:38:55 -06:00
|
|
|
property "sonar.projectName", "io.github.wulkanowy:app"
|
|
|
|
property "sonar.projectKey", "io.github.wulkanowy:app"
|
2017-11-26 09:32:33 -06:00
|
|
|
|
|
|
|
property "sonar.sources", "src/main/java"
|
2018-08-25 17:18:31 -05:00
|
|
|
property "sonar.exclusions", "build/**,**/*.png,*.iml, **/*generated*,"
|
2017-11-26 09:32:33 -06:00
|
|
|
property "sonar.import_unknown_files", true
|
|
|
|
|
|
|
|
// Defines where the java files are
|
|
|
|
property "sonar.binaries", "build/intermediates/classes/debug"
|
|
|
|
property "sonar.libraries", libraries
|
|
|
|
|
|
|
|
// Defines where the xml files are
|
|
|
|
property "sonar.java.binaries", "build/intermediates/classes/debug"
|
|
|
|
property "sonar.java.libraries", libraries
|
|
|
|
|
|
|
|
// Analyze tests classes
|
|
|
|
property "sonar.tests", "src/test/java, src/androidTest/java"
|
|
|
|
property "sonar.java.test.binaries", "build/intermediates/classes/debug"
|
|
|
|
property "sonar.java.test.libraries", libraries
|
|
|
|
|
|
|
|
property "sonar.java.coveragePlugin", "jacoco"
|
|
|
|
property "sonar.android.lint.report", "build/reports/lint-results.xml"
|
|
|
|
property "sonar.jacoco.reportPaths", fileTree(dir: project.projectDir, includes: ['**/*.exec', '**/*.ec'])
|
|
|
|
}
|
|
|
|
}
|