registering
Deprecated
Use 'val element = register(name) { }' instead. See the Gradle 9.6 upgrading guide.
Property delegate for registering new elements in the container.
tasks {
val rebuild by registering {
dependsOn("clean", "build")
}
}Parameters
the configuration action
Type Parameters
the domain object type
the concrete container type
Deprecated
Use 'val element = register<Type>(name)' instead. See the Gradle 9.6 upgrading guide.
Property delegate for registering new elements in the container.
tasks { val jar by registering(Jar::class) }
Parameters
the domain object type
Type Parameters
the domain object type
the concrete container type
Deprecated
Use 'val element = register<Type>(name) { }' instead. See the Gradle 9.6 upgrading guide.
Property delegate for registering new elements in the container.
tasks { val jar by registering(Jar::class) { } }
Parameters
the domain object type
the configuration action
Type Parameters
the container element type
the container type
the desired domain object type
Deprecated
Use 'val element = register(name)' instead. See the Gradle 9.6 upgrading guide.
Property delegate for registering new elements in the container.
tasks { val rebuild by registering }
Type Parameters
the domain object type
the concrete container type