File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,16 @@ internal fun Project.configureJacoco(
90
90
html.required = true
91
91
}
92
92
93
- // Collect all java and kotlin source directories from the variant's source sets
94
- fun SourceDirectories.Flat.toFilePaths (): Provider <List <String >> = this
95
- .all
96
- .map { directories -> directories.map { it.asFile.path } }
93
+ fun SourceDirectories.Flat?.toFilePaths (): Provider <List <String >> = this
94
+ ?.all
95
+ ?.map { directories -> directories.map { it.asFile.path } }
96
+ ? : provider { emptyList() }
97
+ operator fun Provider<List<String>>.plus (other : Provider <List <String >>) =
98
+ zip(other) { first, second -> first + second }
97
99
sourceDirectories.setFrom(
98
100
files(
99
- variant.sources.java?.toFilePaths(),
100
- variant.sources.kotlin?.toFilePaths()
101
- )
101
+ variant.sources.java.toFilePaths() + variant.sources.kotlin.toFilePaths()
102
+ ),
102
103
)
103
104
104
105
executionData.setFrom(
You can’t perform that action at this time.
0 commit comments