Package org.gradle.api.artifacts
Schnittstelle ExternalDependency
- Alle Superschnittstellen:
Dependency,HasAttributes,HasConfigurableAttributes<ModuleDependency>,ModuleDependency,ModuleVersionSelector
- Alle bekannten Unterschnittstellen:
ClientModule,ExternalModuleDependency,MinimalExternalModuleDependency
An ExternalDependency is a Dependency on a source outside the current project hierarchy.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.gradle.api.artifacts.Dependency
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()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.Von Schnittstelle geerbte Methoden org.gradle.api.artifacts.Dependency
because, contentEquals, getGroup, getName, getReason, getVersionVon Schnittstelle geerbte Methoden org.gradle.api.artifacts.ModuleDependency
addArtifact, artifact, artifact, attributes, capabilities, doNotEndorseStrictVersions, endorseStrictVersions, exclude, getArtifacts, getAttributes, getCapabilitySelectors, getExcludeRules, getRequestedCapabilities, getTargetConfiguration, isEndorsingStrictVersions, isTransitive, setTargetConfiguration, setTransitiveVon Schnittstelle geerbte Methoden org.gradle.api.artifacts.ModuleVersionSelector
getGroup, getModule, getName, getVersion, matchesStrictly
-
Methodendetails
-
isForce
boolean isForce()Returns whether or not the version of this dependency should be enforced in the case of version conflicts. -
copy
ExternalDependency copy()Creates and returns a new dependency with the property values of this one.- Angegeben von:
copyin SchnittstelleDependency- Angegeben von:
copyin SchnittstelleModuleDependency- Gibt zurück:
- The copy. Never returns null.
-
version
Configures the version constraint for this dependency.- Parameter:
configureAction- the configuration action for the module version- Seit:
- 4.4
-
getVersionConstraint
VersionConstraint getVersionConstraint()Returns the version constraint to be used during selection.- Gibt zurück:
- the version constraint
- Seit:
- 4.4
-