getting

Deprecated

Use 'val element = getByName(name) { }' instead. See the Gradle 9.6 upgrading guide.

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

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


Deprecated

Use 'val element = getByName<Type>(name) { }' instead. See the Gradle 9.6 upgrading guide.

Provides a property delegate that gets elements of the given type and applies the given configuration.


Deprecated

Use 'val element = getByName<Type>(name)' instead. See the Gradle 9.6 upgrading guide.

Provides a property delegate that gets elements of the given type.


Deprecated

Use 'val element = getByName(name)' instead. See the Gradle 9.6 upgrading guide.

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

tasks { val jar by getting }