For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

the

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

Returns the extension of the specified type.

Since

5.6

Type Parameters

T

the extension type.


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

Returns the extension of the specified extensionType.

Since

4.7

Parameters

extensionType

the reified extension type.

Type Parameters

T

the extension type.


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

Returns the project extension of the specified type.

Since

5.6

Type Parameters

T

the project extension type.

See also


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

Returns the project extension of the specified type.

Since

4.1

Type Parameters

T

the project extension type.

See also