api / org.gradle.api.plugins / ExtensionContainer / getByName

getByName

abstract fun getByName(name: String): Any

Looks for the extension of a given name. If none found it will throw an exception.

Parameters

name - extension name

Exceptions

UnknownDomainObjectException - When the given extension is not found.

Return
extension, never null