findPlugin

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

Returns information about the plugin with the given ID that has been applied or is currently being applied, or null if there is no such plugin.

Plugins in the "org.gradle" namespace (that is, core Gradle plugins) can be specified by either name (e.g. "java") or ID "org.gradle.java". All other plugins must be queried for by their full ID (e.g. "org.company.some-plugin").

Some Gradle plugins have not yet migrated to fully qualified plugin IDs. Such plugins can be detected with this method by simply using the unqualified ID (e.g. "some-third-party-plugin".

Return

information about the applied plugin, or null if no plugin with the given ID has been applied or is being applied

Since

2.3

Parameters

id

the plugin ID