jlleitschuh
10/13/2017, 8:21 PMFileCollection
in plugins?
This is what the spotless plugin is doing but UnionFileCollection
is an internal
api.
UnionFileCollection union = new UnionFileCollection();
for (SourceSet sourceSet : javaPlugin.getSourceSets()) {
union.add(sourceSet.getAllSource().filter(file -> {
String name = file.getName();
return name.endsWith(".kt") || name.endsWith(".kts");
}));
}