我正在尝试使用Gradle将Lint结果发布到声纳服务器。其他分析结果已公布,但Lint结果未公布。有没有人有这方面的工作经验?我找不到任何补充信息。
Sonar的版本是3.5.1 Gradle的版本是1.10
顶级构建文件看起来像这样(有3个子项目)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'sonar-runner'
sonarRunner {
sonarProperties {
property "sonar.host.url", "*****"
property "sonar.jdbc.url", "*****"
property "sonar.jdbc.driverClassName", "oracle.jdbc.OracleDriver"
property "sonar.jdbc.username", "*****"
property "sonar.jdbc.password", "*****"
property "sonar.projectKey", "ProView-Android"
property "sonar.projectName", "ProView-Android"
property "sonar.projectVersion", "1.0.0"
property "sonar.profile", "Android Lint"
}
}
subprojects {
sonarRunner {
sonarProperties {
property "sonar.language", "java"
property "sonar.sources", "src/main/java"
property "sonar.binaries", "bin"
property "sonar.profile", "Android Lint"
property "sonar.sourceEncoding", "UTF-8"
}
}
}