# findPlugin

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

### Deprecated

Locates the plugin convention object with the given type.

#### Return

The object. Returns null if there is no such object.

#### Deprecated

Use extensions instead. This is scheduled for removal in Gradle 9.

#### Parameters

type

The convention object type.

#### See also

ExtensionAware

#### Throws

IllegalStateException

When there are multiple matching objects.