existing

Deprecated

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

Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

tasks { val jar by existing { ... } }

Parameters

action

the configuration action

Type Parameters

T

the domain object type

C

the concrete container type


Deprecated

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

Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

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

Parameters

type

the domain object type

Type Parameters

T

the domain object type

C

the concrete container type


Deprecated

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

Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

tasks { val jar by existing(Jar::class) { ... } }

Parameters

type

the domain object type

action

the configuration action

Type Parameters

T

the domain object type

C

the concrete container type


Deprecated

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

Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

tasks { val jar by existing }

Type Parameters

T

the domain object type

C

the concrete container type