Package org.gradle.api.artifacts
Interface ExternalDependency
- All Superinterfaces:
- Dependency,- HasAttributes,- HasConfigurableAttributes<ModuleDependency>,- ModuleDependency,- ModuleVersionSelector
- All Known Subinterfaces:
- ClientModule,- ExternalModuleDependency,- MinimalExternalModuleDependency
An ExternalDependency is a Dependency on a source outside the current project hierarchy.
- 
Field SummaryFields inherited from interface org.gradle.api.artifacts.DependencyARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Creates and returns a new dependency with the property values of this one.Returns the version constraint to be used during selection.booleanisForce()Returns whether or not the version of this dependency should be enforced in the case of version conflicts.voidversion(Action<? super MutableVersionConstraint> configureAction) Configures the version constraint for this dependency.Methods inherited from interface org.gradle.api.artifacts.Dependencybecause, contentEquals, getGroup, getName, getReason, getVersionMethods inherited from interface org.gradle.api.artifacts.ModuleDependencyaddArtifact, artifact, artifact, attributes, capabilities, doNotEndorseStrictVersions, endorseStrictVersions, exclude, getArtifacts, getAttributes, getCapabilitySelectors, getExcludeRules, getRequestedCapabilities, getTargetConfiguration, isEndorsingStrictVersions, isTransitive, setTargetConfiguration, setTransitiveMethods inherited from interface org.gradle.api.artifacts.ModuleVersionSelectorgetGroup, getModule, getName, getVersion, matchesStrictly
- 
Method Details- 
isForceboolean isForce()Returns whether or not the version of this dependency should be enforced in the case of version conflicts.
- 
copyExternalDependency copy()Creates and returns a new dependency with the property values of this one.- Specified by:
- copyin interface- Dependency
- Specified by:
- copyin interface- ModuleDependency
- Returns:
- The copy. Never returns null.
 
- 
versionConfigures the version constraint for this dependency.- Parameters:
- configureAction- the configuration action for the module version
- Since:
- 4.4
 
- 
getVersionConstraintVersionConstraint getVersionConstraint()Returns the version constraint to be used during selection.- Returns:
- the version constraint
- Since:
- 4.4
 
 
-