api / org.gradle.kotlin.dsl / org.gradle.api.plugins.ExtensionAware / the

the

inline fun <reified T : Any> ExtensionAware.the(): T

Returns the extension of the specified type.

Parameters

T - the extension type.

fun <T : Any> ExtensionAware.the(extensionType: KClass<T>): T

Returns the extension of the specified extensionType.

Parameters

T - the extension type.

extensionType - the reified extension type.