DependencyConstraint (Gradle API 4.5)
Date: 2018-01-24

org.gradle.api.artifacts

## Interface DependencyConstraint

- All Superinterfaces:
    Dependency

      @Incubating
      public interface DependencyConstraint
      extends Dependency

  Represents a constraints over all, including transitive, dependencies.
  Since:
    4.5

- - ### Field Summary

    - ### Fields inherited from interface org.gradle.api.artifacts.Dependency

      `ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `VersionConstraint` | `getVersionConstraint()` Returns the version constraint.
    `void` | `version(Action<? super MutableVersionConstraint> configureAction)` Configures the version constraint for this dependency.

    - ### Methods inherited from interface org.gradle.api.artifacts.Dependency

      `contentEquals, copy, getGroup, getName, getVersion`

- - ### Method Detail

    - #### version

          void version(Action<? super MutableVersionConstraint> configureAction)

      Configures the version constraint for this dependency.
      Parameters:
        `configureAction` - the configuration action for the module version

    - #### getVersionConstraint

          VersionConstraint getVersionConstraint()

      Returns the version constraint.