我正在使用 Jacoco v0.8.4和 Sonarcube v2.7.1。
我正在为 SonarCube 使用以下配置。
property "sonar.sources", "src/main/java"
property "sonar.binaries","build/intermediates/javac,app/build/tmp/kotlin-classes"
property "sonar.java.binaries", "build/intermediates/javac,app/build/tmp/kotlin-classes"
property "sonar.tests", "src/test/java" // where the tests are located
property "sonar.java.test.binaries", "build/intermediates/javac,app/build/tmp/kotlin-classes"
property "sonar.jacoco.reportPath", "build/jacoco/testDevDebugUnitTest.exec"
property "sonar.java.coveragePlugin", "jacoco"
property "sonar.android.lint.report", "build/reports/lint results.xml"
SonarCube 分析失败,原因是sonar.java.binaries的值无效
> No files nor directories matching 'app/build/tmp/kotlin-classes'
但是我的项目文件夹中存在“app/build/tmp/kotlin-classes” 。
但是,如果我kotlin从属性中删除内容,那么它会成功地覆盖 Java 文件。
我对 Kotlin 的报道做错了什么吗?
森栏
相关分类