Package org.gradle.api.artifacts
Interface MinimalExternalModuleDependency
- All Superinterfaces:
Dependency,ExternalDependency,ExternalModuleDependency,HasAttributes,HasConfigurableAttributes<ModuleDependency>,ModuleDependency,ModuleVersionSelector
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
Modifier and TypeMethodDescriptioncopy()Creates and returns a new dependency with the property values of this one.The module identifier of the component.Returns the version constraint to be used during selection.Methods inherited from interface org.gradle.api.artifacts.Dependency
because, contentEquals, getGroup, getName, getReason, getVersionMethods inherited from interface org.gradle.api.artifacts.ExternalDependency
isForce, versionMethods inherited from interface org.gradle.api.artifacts.ExternalModuleDependency
isChanging, setChangingMethods 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, setTransitiveMethods inherited from interface org.gradle.api.artifacts.ModuleVersionSelector
getGroup, getName, getVersion, matchesStrictly
-
Method Details
-
getModule
ModuleIdentifier getModule()Description copied from interface:ModuleVersionSelectorThe module identifier of the component. Returns the same information asModuleVersionSelector.getGroup()andModuleVersionSelector.getName().- Specified by:
getModulein interfaceModuleVersionSelector- Returns:
- the module identifier
-
getVersionConstraint
VersionConstraint getVersionConstraint()Description copied from interface:ExternalDependencyReturns the version constraint to be used during selection.- Specified by:
getVersionConstraintin interfaceExternalDependency- Returns:
- the version constraint
-
copy
Creates and returns a new dependency with the property values of this one.- Specified by:
copyin interfaceDependency- Specified by:
copyin interfaceExternalDependency- Specified by:
copyin interfaceExternalModuleDependency- Specified by:
copyin interfaceModuleDependency- Returns:
- The copy. Never returns null.
-