PluginDependencySpec (Gradle API 2.14.1)

Package: org.gradle.plugin.use

## [Java] Interface 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.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `version(String version)` Specify the version of the plugin to depend on.

- - ### Method Detail

    - #### public void version(@Nullable String version)

      Specify the version of the plugin to depend on.

           plugins {
               id "org.company.myplugin" version "1.0"
           }

      By default, dependencies have no (i.e. `null`) version.

      Core plugins must not include a version number specification. Community plugins must include a version number specification.

      Parameters:
        `version` - the version string (`null` for no specified version, which is the default)