Gradle how to create an empty fileCollection?

Viewed 3059
def mergedCompileClasspath == null
project.sourceSets.each {
        if (mergedCompileClasspath == null)
            mergedCompileClasspath = it.compileClasspath
        else    
            mergedCompileClasspath .plus(it.compileClasspath)

}

The plus() method is not working. compileClassPath is immutable? How to create an empty fileCollection?

1 Answers
Related