api / org.gradle.api.plugins / PluginContainer / findPlugin

findPlugin

abstract fun findPlugin(id: String): Plugin<Any>

Returns the plugin for the given id.

Parameters

id - The id of the plugin

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

abstract fun <T : Plugin<Any>> findPlugin(type: Class<T>): T

Returns the plugin for the given type.

Parameters

type - The type of the plugin

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