public interface DependencyDescriptor extends ExtendableItem, InheritableItem
The main information this descriptor contains is the constraint on the dependency. There is
actually two kind of dependency constraints: the default dependency constraint, which can be
obtained with getDependencyRevisionId(), and corresponds to the rev
attribute in Ivy files. This is the constraint as it should be honored by Ivy in default resolve
mode.
Then there is the dynamic constraint, which can either be the same as the default constraint, or
the original dependency constraint when an Ivy file is delivered an published to a
repository. This dynamic constraint is returned by
getDynamicConstraintDependencyRevisionId(), and corresponds to the
revconstraint attribute in the Ivy file. In some resolve mode, this constraint can
be used instead of the default dependency constraint when performing dependency resolution.
| Modifier and Type | Method and Description |
|---|---|
DependencyDescriptor |
asSystem() |
boolean |
canExclude() |
DependencyDescriptor |
clone(ModuleRevisionId revision)
Clones current dependency descriptor with another revision.
|
boolean |
doesExclude(java.lang.String[] moduleConfigurations,
ArtifactId artifactId)
Returns true if
|
DependencyArtifactDescriptor[] |
getAllDependencyArtifacts() |
ExcludeRule[] |
getAllExcludeRules() |
IncludeRule[] |
getAllIncludeRules() |
DependencyArtifactDescriptor[] |
getDependencyArtifacts(java.lang.String moduleConfigurations) |
DependencyArtifactDescriptor[] |
getDependencyArtifacts(java.lang.String[] moduleConfigurations) |
java.lang.String[] |
getDependencyConfigurations(java.lang.String moduleConfiguration) |
java.lang.String[] |
getDependencyConfigurations(java.lang.String[] moduleConfigurations) |
java.lang.String[] |
getDependencyConfigurations(java.lang.String moduleConfiguration,
java.lang.String requestedConfiguration) |
ModuleId |
getDependencyId() |
ModuleRevisionId |
getDependencyRevisionId()
Returns the constraint on dependency this descriptor represents.
|
ModuleRevisionId |
getDynamicConstraintDependencyRevisionId()
Returns the dynamic constraint on dependency this descriptor represents.
|
ExcludeRule[] |
getExcludeRules(java.lang.String moduleConfigurations) |
ExcludeRule[] |
getExcludeRules(java.lang.String[] moduleConfigurations) |
IncludeRule[] |
getIncludeRules(java.lang.String moduleConfigurations) |
IncludeRule[] |
getIncludeRules(java.lang.String[] moduleConfigurations) |
java.lang.String[] |
getModuleConfigurations() |
default ModuleDescriptor |
getModuleDescriptor()
Returns the
ModuleDescriptor declaring this dependency descriptor. |
Namespace |
getNamespace() |
ModuleRevisionId |
getParentRevisionId() |
boolean |
isChanging()
Used to indicate that this dependency is a changing one.
|
boolean |
isForce()
Used to indicate that this revision must be used in case of conflicts, independently of
conflicts manager.
|
boolean |
isTransitive() |
getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributesgetSourceModuleModuleId getDependencyId()
default ModuleDescriptor getModuleDescriptor()
ModuleDescriptor declaring this dependency descriptor.
Returns null if this dependency descriptor is not declared in a ModuleDescriptor.ModuleDescriptor of this dependency descriptorboolean isForce()
boolean isChanging()
boolean isTransitive()
ModuleRevisionId getParentRevisionId()
ModuleRevisionId getDependencyRevisionId()
ModuleRevisionId getDynamicConstraintDependencyRevisionId()
java.lang.String[] getModuleConfigurations()
java.lang.String[] getDependencyConfigurations(java.lang.String moduleConfiguration,
java.lang.String requestedConfiguration)
java.lang.String[] getDependencyConfigurations(java.lang.String moduleConfiguration)
java.lang.String[] getDependencyConfigurations(java.lang.String[] moduleConfigurations)
Namespace getNamespace()
DependencyArtifactDescriptor[] getAllDependencyArtifacts()
DependencyArtifactDescriptor[] getDependencyArtifacts(java.lang.String moduleConfigurations)
DependencyArtifactDescriptor[] getDependencyArtifacts(java.lang.String[] moduleConfigurations)
IncludeRule[] getAllIncludeRules()
IncludeRule[] getIncludeRules(java.lang.String moduleConfigurations)
IncludeRule[] getIncludeRules(java.lang.String[] moduleConfigurations)
ExcludeRule[] getAllExcludeRules()
ExcludeRule[] getExcludeRules(java.lang.String moduleConfigurations)
ExcludeRule[] getExcludeRules(java.lang.String[] moduleConfigurations)
boolean doesExclude(java.lang.String[] moduleConfigurations,
ArtifactId artifactId)
moduleConfigurations - dittoartifactId - dittoboolean canExclude()
DependencyDescriptor asSystem()
DependencyDescriptor clone(ModuleRevisionId revision)
revision - the revision of the cloned dependency descriptorjava.lang.IllegalArgumentException - if the given ModuleRevisionId has not the same ModuleId as the
ModuleRevisionId of this descriptor.Copyright ©2007-2024 The Apache Software Foundation, Licensed under Apache License, Version 2.0.