# PluginDependencySpec

interface PluginDependencySpec(source)

A mutable specification of a dependency on a plugin.

Can be used to specify the version of the plugin to use.

See PluginDependenciesSpec for more information about declaring plugin dependencies.

## Functions

apply
Link copied to clipboard
abstract fun apply(apply: Boolean): PluginDependencySpec
Specifies whether the plugin should be applied to the current project.
version
Link copied to clipboard
abstract fun version(@Nullable version: @Nullable String): PluginDependencySpec
open fun version(version: Provider<String>): PluginDependencySpec
Specify the version of the plugin to depend on.