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.

findByName

@Nullable
abstract fun findByName(name: String): @Nullable T(source)

Locates an object by name, returning null if there is no such object.

This operation is eager and will cause the returned element, if any, to be realized.

Return

The object with the given name, or null if there is no such object in this collection.

Since

0.9

Parameters

name

The object name