abstract fun id(id: String): PluginDependencySpec
Add a dependency on the plugin with the given id.
plugins { id "org.company.myplugin" }
Further constraints (e.g. version number) can be specified by the methods of the return value. plugins { id "org.company.myplugin" version "1.3" }
Plugins are automatically applied to the current script by default. This can be disabled using the apply false
option: plugins { id "org.company.myplugin" version "1.3" apply false }
This is useful to reuse task classes from a plugin or to apply it to some other target than the current script.
id
- the id of the plugin to depend on
Return
a mutable plugin dependency specification that can be used to further refine the dependency