api / org.gradle.kotlin.dsl / org.gradle.api.plugins.ExtensionContainer

Extensions for org.gradle.api.plugins.ExtensionContainer

get

operator fun ExtensionContainer.get(name: String): Any

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

getByName

fun <T : Any> ExtensionContainer.getByName(name: String): T

Looks for the extension of a given name and casts it to the expected type T.

getValue

operator fun <T : Any> ExtensionContainer.getValue(thisRef: Any?, property: KProperty<*>): T