Package org.gradle.api.artifacts
Interface DependenciesMetadata<T extends DependencyMetadata>
-
- Type Parameters:
T
- type of the dependency metadata in this collection
- All Superinterfaces:
java.util.Collection<T>
,java.lang.Iterable<T>
- All Known Subinterfaces:
DependencyConstraintsMetadata
,DirectDependenciesMetadata
public interface DependenciesMetadata<T extends DependencyMetadata> extends java.util.Collection<T>
Describes metadata about a dependency - direct dependencies or dependency constraints - declared in a resolved component's metadata.- Since:
- 4.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(java.lang.String dependencyNotation)
Add a dependency or a dependency constraint using the string notation:group:name:version
.void
add(java.lang.String dependencyNotation, Action<? super T> configureAction)
Add a dependency or a dependency constraint using the string notation:group:name:version
.void
add(java.util.Map<java.lang.String,java.lang.String> dependencyNotation)
Add a dependency or a dependency constraint using the map notation:group: group, name: name, version: version
.void
add(java.util.Map<java.lang.String,java.lang.String> dependencyNotation, Action<? super T> configureAction)
Add a dependency or a dependency constraint using the map notation:group: group, name: name, version: version
.
-
-
-
Method Detail
-
add
void add(java.lang.String dependencyNotation)
Add a dependency or a dependency constraint using the string notation:group:name:version
.- Parameters:
dependencyNotation
- the dependency
-
add
void add(java.util.Map<java.lang.String,java.lang.String> dependencyNotation)
Add a dependency or a dependency constraint using the map notation:group: group, name: name, version: version
.- Parameters:
dependencyNotation
- the dependency
-
add
void add(java.lang.String dependencyNotation, Action<? super T> configureAction)
Add a dependency or a dependency constraint using the string notation:group:name:version
.- Parameters:
dependencyNotation
- the dependencyconfigureAction
- action to configure details of the dependency - seeDependencyMetadata
-
add
void add(java.util.Map<java.lang.String,java.lang.String> dependencyNotation, Action<? super T> configureAction)
Add a dependency or a dependency constraint using the map notation:group: group, name: name, version: version
.- Parameters:
dependencyNotation
- the dependencyconfigureAction
- action to configure details of the dependency - seeDependencyMetadata
-
-