@Incubating interface DirectDependenciesMetadata : DependenciesMetadata<DirectDependencyMetadata>
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 org.gradle.api.artifacts.dsl.ComponentMetadataHandler.
Since
4.5
abstract fun add(dependencyNotation: String): Unit abstract fun add(dependencyNotation: String, configureAction: Action<in T>): Unit
Add a dependency or a dependency constraint using the string notation: abstract fun add(dependencyNotation: MutableMap<String, String>): Unit abstract fun add(dependencyNotation: MutableMap<String, String>, configureAction: Action<in T>): Unit
Add a dependency or a dependency constraint using the map notation: |