How can we use the programmatic "include" files syntax for sourceSets?

(Jay Vyas) #1

referenced from here :

I’d like to use “include { File file -> … }”, to define a source set with exactly two .groovy files which I know the exact name of.

(Peter Niederwieser) #2

Easier to use the glob filters in this case. With the programmatic filters, you’ll need to return ‘true’ or ‘false’ for each ‘File’ passed into the closure.