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 f1bfe34 commit 27f548fCopy full SHA for 27f548f
build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid/Jacoco.kt
@@ -89,9 +89,23 @@ internal fun Project.configureJacoco(
89
}
90
91
// Collect all java and kotlin source directories from the variant's source sets
92
+ val kotlin = variant
93
+ .sources
94
+ .kotlin
95
+ ?.all
96
+ ?.map { it.orEmpty() }
97
+ ?.map { it.map { it.asFile.path } }
98
+ val java = variant
99
100
+ .java
101
102
103
104
sourceDirectories.setFrom(
- variant.sources.kotlin?.all?.get().orEmpty(),
- variant.sources.java?.all?.get().orEmpty()
105
+ files(
106
+ kotlin,
107
+ java
108
+ )
109
)
110
111
executionData.setFrom(
0 commit comments