# findPlugin

inline fun <T : Plugin<*>> PluginContainer. findPlugin(type: KClass<T>): T?(source)
inline fun <T : Plugin<*>> PluginContainer. findPlugin(type: KClass<T>): T?(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.PluginContainer.findPlugin.

#### See also

PluginContainer.findPlugin

inline fun <T : Any> Convention. findPlugin(): T?(source)

### Deprecated

The concept of conventions is deprecated. Use extensions instead.

Locates the plugin convention object with the given type.

#### Return

the convention plugin, or null if there is no such convention plugin

#### Parameters

T

the convention plugin type.

#### See also

Convention.findPlugin

#### Throws

IllegalStateException

when there are multiple matching objects

fun <T : Any> Convention. findPlugin(conventionType: KClass<T>): T?(source)

### Deprecated

The concept of conventions is deprecated. Use extensions instead.

Locates the plugin convention object with the given type.

#### Return

the convention plugin, or null if there is no such convention plugin

#### Parameters

conventionType

the convention plugin type.

#### See also

Convention.findPlugin

#### Throws

IllegalStateException

when there are multiple matching objects