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.

findByType

inline fun <T : Any> ExtensionContainer.findByType(type: KClass<T>): T?(source)
inline fun <T : Any> ExtensionContainer.findByType(type: KClass<T>): T?(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.ExtensionContainer.findByType.

Since

1.0

See also


Looks for the extension of a given type.

Return

the extension or null if not found

Since

5.0

Type Parameters

T

the extension type

See also

ExtensionContainer.findByType