Managed Type
Marks types that can be instantiated by Gradle via the managed object infrastructure.
Types annotated with this annotation will be automatically instantiated by Gradle when constructing managed objects. See the below example:
interface MyObject {
ConfigurableFileCollection getFiles();
RegularFileProperty getProperty();
}
def instance = objects.newInstance(MyObject)
instance.files.from(file("foo.txt"))
instance.property.set(file("bar.txt"))
Content copied to clipboard
Since
9.0.0