For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

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" } }

Since

4.1


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.

Since

4.8


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.

Since

4.8


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 }

Since

4.1