# the

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

Returns the extension of the specified type.

#### Parameters

T

the extension type.

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

Returns the extension of the specified extensionType.

#### Parameters

T

the extension type.

extensionType

the reified extension type.

inline fun <T : Any> Project. the(): T(source)
fun <T : Any> Project. the(extensionType: KClass<T>): T(source)

Returns the project extension of the specified type.

If no extension is found, returns a project convention if available. Note, that the concept of conventions is deprecated and scheduled for removal in Gradle 9.

#### Parameters

T

the project extension type.

#### See also

ExtensionAware