Package org.gradle.api.artifacts

## Interface MinimalExternalModuleDependency

- All Superinterfaces:
    `Dependency`, `ExternalDependency`, `ExternalModuleDependency`, `HasAttributes`, `HasConfigurableAttributes<ModuleDependency>`, `ModuleDependency`, `ModuleVersionSelector`

      public interface MinimalExternalModuleDependency
      extends ExternalModuleDependency

  The minimal information Gradle needs to address an external module.
  Since:
    6.8

- - ### 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 | Description
    --- | --- | ---
    `MinimalExternalModuleDependency` | `copy()` | Creates and returns a new dependency with the property values of this one.
    `ModuleIdentifier` | `getModule()` | The module identifier of the component.
    `VersionConstraint` | `getVersionConstraint()` | Returns the version constraint to be used during selection.

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

      `because, contentEquals, getGroup, getName, getReason, getVersion`

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

      `isForce, setForce, version`

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

      `isChanging, setChanging`

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

      `addArtifact, artifact, artifact, attributes, capabilities, doNotEndorseStrictVersions, endorseStrictVersions, exclude, getArtifacts, getAttributes, getExcludeRules, getRequestedCapabilities, getTargetConfiguration, isEndorsingStrictVersions, isTransitive, setTargetConfiguration, setTransitive`

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

      `getGroup, getName, getVersion, matchesStrictly`

- - ### Method Detail

    - #### getModule

          ModuleIdentifier getModule()

      Description copied from interface: `ModuleVersionSelector`
      The module identifier of the component. Returns the same information as `ModuleVersionSelector.getGroup()` and `ModuleVersionSelector.getName()`.
      Specified by:
        `getModule` in interface `ModuleVersionSelector`
      Returns:
        the module identifier

    - #### getVersionConstraint

          VersionConstraint getVersionConstraint()

      Description copied from interface: `ExternalDependency`
      Returns the version constraint to be used during selection.
      Specified by:
        `getVersionConstraint` in interface `ExternalDependency`
      Returns:
        the version constraint

    - #### copy

          MinimalExternalModuleDependency copy()

      Creates and returns a new dependency with the property values of this one.
      Specified by:
        `copy` in interface `Dependency`
      Specified by:
        `copy` in interface `ExternalDependency`
      Specified by:
        `copy` in interface `ExternalModuleDependency`
      Specified by:
        `copy` in interface `ModuleDependency`
      Returns:
        The copy. Never returns null.