ManagedType

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"))

Since

9.0.0

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String