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.
|
VersionConstraint |
getVersionConstraint()
Returns the version constraint to be used during selection.
|
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, attributes, exclude, getArtifacts, getAttributes, getExcludeRules, getTargetConfiguration, isTransitive, setTargetConfiguration, setTransitive
because, contentEquals, getGroup, getName, getReason, getVersion
getGroup, getModule, getName, getVersion, matchesStrictly
boolean isForce()
ExternalDependency setForce(boolean force)
force
- Whether to force this version or not.ExternalDependency copy()
copy
in interface Dependency
copy
in interface ModuleDependency
@Incubating void version(Action<? super MutableVersionConstraint> configureAction)
configureAction
- the configuration action for the module version@Incubating VersionConstraint getVersionConstraint()