public interface ExternalDependency extends ModuleDependency, ModuleVersionSelector
An ExternalDependency is a Dependency on a source outside the current project hierarchy.
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION| Modifier and Type | Method and Description |
|---|---|
ExternalDependency |
copy()
Creates and returns a new dependency with the property values of this one.
|
boolean |
isForce()
Returns whether or not the version of this dependency should be enforced in the case of version conflicts.
|
ExternalDependency |
setForce(boolean force)
Sets whether or not the version of this dependency should be enforced in the case of version conflicts.
|
void |
version(Action<? super MutableVersionConstraint> configureAction)
Configures the version constraint for this dependency.
|
addArtifact, artifact, artifact, exclude, getArtifacts, getExcludeRules, getTargetConfiguration, isTransitive, setTargetConfiguration, setTransitivecontentEquals, getGroup, getName, getVersiongetGroup, getName, getVersion, getVersionConstraint, matchesStrictlyboolean isForce()
ExternalDependency setForce(boolean force)
force - Whether to force this version or not.ExternalDependency copy()
copy in interface Dependencycopy in interface ModuleDependency@Incubating void version(Action<? super MutableVersionConstraint> configureAction)
configureAction - the configuration action for the module version