api / org.gradle.api.plugins / PluginManager / hasPlugin

hasPlugin

abstract fun hasPlugin(id: String): Boolean

Returns true if a plugin with the given ID has already been applied, otherwise false.

Parameters

id - the plugin ID. See #findPlugin(String) for details about this parameter.

Return
true if the plugin has been applied

Since
2.3