api / org.gradle.api / NamedDomainObjectCollection / getAt

getAt

abstract fun getAt(name: String): T

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

Parameters

name - The object name

Exceptions

UnknownDomainObjectException - when there is no such object in this collection.

Return
The object with the given name. Never returns null.