Skip to content

Commit

Permalink
Use kotlin sourceSet instead of java
Browse files Browse the repository at this point in the history
For detailed reasons check the following issue:
#702
  • Loading branch information
StefMa authored Aug 19, 2023
1 parent e5e6038 commit 45003b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private fun androidPluginConfigureAction(

androidCommonExtension.sourceSets.all { sourceSet ->
// https://issuetracker.google.com/u/1/issues/170650362
val androidSourceSet = sourceSet.java as DefaultAndroidSourceDirectorySet
val androidSourceSet = sourceSet.kotlin as DefaultAndroidSourceDirectorySet
// Passing Callable, so returned FileCollection, will lazy evaluate it
// only when task will need it.
// Solves the problem of having additional source dirs in
Expand Down

0 comments on commit 45003b5

Please sign in to comment.