Package org.gradle.api.artifacts
Interface DependenciesMetadata
- All Superinterfaces:
Collection<DependencyMetadata>
,Iterable<DependencyMetadata>
Describes the dependencies of a variant declared in a resolved component's metadata, which typically originate from
a component descriptor (Gradle metadata file, Ivy file, Maven POM). This interface can be used to adjust the dependencies
of a published component via metadata rules (see
ComponentMetadataHandler
.- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a dependency using the string notation:group:name:version
.void
add
(String dependencyNotation, Action<DependencyMetadata> configureAction) Add a dependency using the string notation:group:name:version
.void
Add a dependency using the map notation:group: group, name: name, version: version
.void
Add a dependency using the map notation:group: group, name: name, version: version
.
-
Method Details
-
add
Add a dependency using the string notation:group:name:version
.- Parameters:
dependencyNotation
- the dependency
-
add
Add a dependency using the map notation:group: group, name: name, version: version
.- Parameters:
dependencyNotation
- the dependency
-
add
Add a dependency using the string notation:group:name:version
.- Parameters:
dependencyNotation
- the dependencyconfigureAction
- action to configure details of the dependency - seeDependencyMetadata
-
add
Add a dependency using the map notation:group: group, name: name, version: version
.- Parameters:
dependencyNotation
- the dependencyconfigureAction
- action to configure details of the dependency - seeDependencyMetadata
-