我正在使用“org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.2.1”,并且已经创建了Jacoco报告文件。
这是我在build.gradle中的sonarQube配置:
sonarqube {
properties {
property "sonar.host.url", "https://localhost"
property "sonar.projectName", "Project"
property "sonar.projectKey", "org.sonarqube:java-gradle"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.cobertura.reportPath", "$buildDir/reports/cobertura/coverage.xml"
property "sonar.jacoco.itReportPath", "$buildDir/jacoco/integrationTest.exec"
property "sonar.exclusions", "**/build/**,**/thirdparty/**,**/*.properties"
}
}