For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

PluginDependencySpec

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.

Since

2.0

Functions

Link copied to clipboard
abstract fun apply(apply: Boolean): PluginDependencySpec
Specifies whether the plugin should be applied to the current project.
Link copied to clipboard

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

Link copied to clipboard
abstract fun version(@Nullable version: @Nullable String): PluginDependencySpec
Specify the version of the plugin to depend on.
Link copied to clipboard

Specify the version of the plugin to depend on.