fix: lazy query for task

pull/1662/head
Alfayed Baksh 9 months ago
parent f1bfe34786
commit 27f548fec5

@ -89,9 +89,23 @@ internal fun Project.configureJacoco(
} }
// Collect all java and kotlin source directories from the variant's source sets // Collect all java and kotlin source directories from the variant's source sets
val kotlin = variant
.sources
.kotlin
?.all
?.map { it.orEmpty() }
?.map { it.map { it.asFile.path } }
val java = variant
.sources
.java
?.all
?.map { it.orEmpty() }
?.map { it.map { it.asFile.path } }
sourceDirectories.setFrom( sourceDirectories.setFrom(
variant.sources.kotlin?.all?.get().orEmpty(), files(
variant.sources.java?.all?.get().orEmpty() kotlin,
java
)
) )
executionData.setFrom( executionData.setFrom(

Loading…
Cancel
Save