I took the hard road and I think I solved it, alth...
# dsl
m
I took the hard road and I think I solved it, although it involves mutable state for now it seems to work:
Copy code
from(configurations.compile.map { configuration ->
            var finalFileTree: FileCollection = files().asFileTree
            configuration.asFileTree.forEach {
                if (it.isDirectory.not()) {
                    finalFileTree = finalFileTree.plus(zipTree(it))
                }
            }
            finalFileTree
        })