# 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.
apply
Link copied to clipboard
infix fun PluginDependencySpec.apply(apply: Boolean): PluginDependencySpec

Specifies whether the plugin should be applied to the current project. Otherwise it is only put on the project's classpath.

version
Link copied to clipboard
abstract fun version(@Nullable version: String): PluginDependencySpec
open fun version(version: Provider<String>): PluginDependencySpec
Specify the version of the plugin to depend on.
version
Link copied to clipboard
infix fun PluginDependencySpec.version(version: String?): PluginDependencySpec
infix fun PluginDependencySpec.version(version: Provider<String>): PluginDependencySpec

Specify the version of the plugin to depend on.