We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b199c1 commit c4cb8bcCopy full SHA for c4cb8bc
build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid/Jacoco.kt
@@ -89,10 +89,11 @@ internal fun Project.configureJacoco(
89
}
90
91
// Collect all java and kotlin source directories from the variant's source sets
92
- val sourceDirs = variant.sources
93
- .map { it.java.srcDirs + it.kotlin.srcDirs }
94
- .flatten()
95
- sourceDirectories.setFrom(sourceDirs)
+// val sourceDirs =
+ sourceDirectories.setFrom(
+ variant.sources.kotlin?.all?.get(),
+ variant.sources.java?.all?.get()
96
+ )
97
98
executionData.setFrom(
99
project.fileTree("$buildDir/outputs/unit_test_code_coverage/${variant.name}UnitTest")
0 commit comments