Dependency
, HasAttributes
, HasConfigurableAttributes<ModuleDependency>
, ModuleDependency
, ModuleVersionSelector
ClientModule
, ExternalModuleDependency
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 | 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.
|
because, contentEquals, getGroup, getName, getReason, getVersion
addArtifact, artifact, artifact, attributes, capabilities, exclude, getArtifacts, getAttributes, getExcludeRules, getRequestedCapabilities, getTargetConfiguration, isTransitive, setTargetConfiguration, setTransitive
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()