api / org.gradle.kotlin.dsl / getting

getting

inline val <T : Any, U : NamedDomainObjectCollection<in T>> U.getting: U

Idiomatic way of referring to an existing element in a collection via a delegate property.

tasks { val jar by getting }

fun <T : Any, U : NamedDomainObjectCollection<T>> U.getting(configuration: T.() -> Unit): NamedDomainObjectCollectionDelegateProvider<T>

Idiomatic way of referring and configuring an existing element in a collection via a delegate property.

tasks { val jar by getting { group = "My" } }