Continuing the discussion from How to create an empty fileTree?:
FYI - I managed to solve this by appending FileTree instances to an empty FileCollection
eg:
def allFiles = files()
["one", "two", "three"].each {
allFiles += fileTree(it)
}
doStuff(allFiles)