I am trying to migrate a groovy code to kotlin.dsl...
# gradle
r
I am trying to migrate a groovy code to kotlin.dsl. But I can not. Could anyone help?
Kotlin.dsl I can't go any further.
t
Aí está
r
Valeu. Mas o getProperties() não existe no kotlin.dsl
tentei
Copy code
.filter {
    it.sonarqube.properties {
        it.properties["skipProject"] == false
    }
}
mas está dando erro =(
t
Copy code
fun findAllReports(): String {
    val file = "${rootProject.buildDir}/reports"
    
    return rootProject.subprojects
        .filterNot { it.sonarqube.isSkipProject }
        .joinToString(",") {
            "$file/jacocoTestReport-${it.name}.xml"
        }
}
Achei que não tinha o plugin aqui, mas tenho
👍 1
r
Muito obrigado @Thiago Nerys