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.

getAt

abstract fun getAt(name: String): T(source)

Locates an object by name, failing if there is no such object. This method is identical to getByName. You can call this method in your build script by using the groovy [] operator.

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

Return

The object with the given name. Never returns null.

Since

0.9

Parameters

name

The object name

Throws

when there is no such object in this collection.