registering

Property delegate for registering new elements in the container.

tasks {
val rebuild by registering {
dependsOn("clean", "build")
}
}

Parameters

T

the domain object type

C

the concrete container type

action

the configuration action


Property delegate for registering new elements in the container.

tasks { val jar by registering(Jar::class) }

Parameters

T

the domain object type

C

the concrete container type

type

the domain object type


Property delegate for registering new elements in the container.

tasks { val jar by registering(Jar::class) { } }

Parameters

T

the container element type

C

the container type

U

the desired domain object type

type

the domain object type

action

the configuration action


Property delegate for registering new elements in the container.

tasks { val rebuild by registering }

Parameters

T

the domain object type

C

the concrete container type