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.

findPlugin

@Nullable
abstract fun findPlugin(id: String): @Nullable Plugin(source)

Returns the plugin for the given id.

Return

the plugin or null if no plugin for the given id exists.

Since

0.7

Parameters

id

The id of the plugin


@Nullable
abstract fun <T : Plugin?> findPlugin(type: Class<T>): @Nullable T(source)

Returns the plugin for the given type.

Return

the plugin or null if no plugin for the given type exists.

Since

0.7

Parameters

type

The type of the plugin