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, 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, getCapabilitySelectors, 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 asModuleVersionSelector.getGroup()
andModuleVersionSelector.getName()
.- Specified by:
getModule
in interfaceModuleVersionSelector
- 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 interfaceExternalDependency
- Returns:
- the version constraint
-
copy
MinimalExternalModuleDependency copy()
Creates and returns a new dependency with the property values of this one.- Specified by:
copy
in interfaceDependency
- Specified by:
copy
in interfaceExternalDependency
- Specified by:
copy
in interfaceExternalModuleDependency
- Specified by:
copy
in interfaceModuleDependency
- Returns:
- The copy. Never returns null.
-
-