Interface ExternalDependency
- All Superinterfaces:
Dependency, ModuleDependency, ModuleVersionSelector
- All Known Subinterfaces:
ClientModule, ExternalModuleDependency
An ExternalDependency is a Dependency on a source outside the current project hierarchy.
-
Field Summary
Fields inherited from interface Dependency
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates and returns a new dependency with the property values of this one.booleanisForce()Returns whether or not the version of this dependency should be enforced in the case of version conflicts.setForce(boolean force) Sets 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 Dependency
contentEquals, getGroup, getName, getVersionMethods inherited from interface ModuleDependency
addArtifact, artifact, artifact, exclude, getArtifacts, getExcludeRules, getTargetConfiguration, isTransitive, setTargetConfiguration, setTransitiveMethods inherited from interface ModuleVersionSelector
getGroup, getName, getVersion, getVersionConstraint, matchesStrictly
-
Method Details
-
isForce
boolean isForce()Returns whether or not the version of this dependency should be enforced in the case of version conflicts. -
setForce
Sets whether or not the version of this dependency should be enforced in the case of version conflicts.- Parameters:
force- Whether to force this version or not.- Returns:
- this
-
copy
ExternalDependency copy()Creates and returns a new dependency with the property values of this one.- Specified by:
copyin interfaceDependency- Specified by:
copyin interfaceModuleDependency- Returns:
- The copy. Never returns null.
-
version
Configures the version constraint for this dependency.- Parameters:
configureAction- the configuration action for the module version- Since:
- 4.4
-