Skip to content

Instantly share code, notes, and snippets.

@azizbekian
Last active January 6, 2021 14:28
Show Gist options
  • Save azizbekian/32740b151b330f6e6b19542f5abc06c9 to your computer and use it in GitHub Desktop.
Save azizbekian/32740b151b330f6e6b19542f5abc06c9 to your computer and use it in GitHub Desktop.
SonarQube setup
apply from: "$project.rootDir/sonar.gradle"
buildscript {
repositories {
...
}
dependencies {
...
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0"
}
}
allprojects {
...
}
subprojects {
apply plugin: "org.sonarqube"
sonarqube {
properties {
property "sonar.coverage.jacoco.xmlReportPaths", "$projectDir.parentFile.path/app/build/reports/jacoco/testDevDebugUnitTestCoverage/testDevDebugUnitTestCoverage.xml"
}
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment