api / org.gradle.api.plugins / PluginContainer / hasPlugin

hasPlugin

abstract fun hasPlugin(id: String): Boolean

Returns true if the container has a plugin with the given id, false otherwise.

Parameters

id - The id of the plugin

abstract fun hasPlugin(type: Class<out Plugin<Any>>): Boolean

Returns true if the container has a plugin with the given type, false otherwise.

Parameters

type - The type of the plugin