The FileCollection.add() method has been removed - use Project.files() and Project.fileTree() to create configurable file collections/file trees and add to them via om(). The FileCollection.stopExecutionIfEmpty() method has been removed - use the annotation on FileCollection task properties instead. To reset the property back to its default value. The property setter no longer accepts null as a way You can no longer pass null as the configuration action of om(Object, Action).įor better compatibility with the Kotlin DSL, CopySpec.duplicatesStrategy is no longer nullable. You can no longer cast FileCollection objects to other types using the as keyword or the asType() method. Avoiding Unnecessary Task Configuration.Modeling Feature Variants and Optional Dependencies.Producing and Consuming Variants of Libraries.Handling Mutually Exclusive Dependencies.Understanding Library and Application Differences.Understanding Configuration and Execution.