Dependency Collector
A DependencyCollector
is used as part of a dependencies block in the DSL. A collector implements a single dependency scope and exposes the declared dependencies on getDependencies.
Since
8.6
Functions
Link copied to clipboard
Add a dependency.
abstract fun add(dependencyNotation: CharSequence, configuration: Action<in ExternalModuleDependency>)
abstract fun add(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>, configuration: Action<in ExternalModuleDependency>)
Add a dependency and configure it.
Link copied to clipboard
Add a dependency constraint.
Add a dependency constraint, using a Provider to lazily create the constraint.
abstract fun addConstraint(dependencyConstraint: DependencyConstraint, configuration: Action<in DependencyConstraint>)
Add a dependency constraint and configure it.
abstract fun addConstraint(dependencyConstraint: Provider<out DependencyConstraint>, configuration: Action<in DependencyConstraint>)
Add a dependency constraint and configure it, using a Provider to lazily create the constraint.
Link copied to clipboard
Returns all dependencies declared on this collector.
Link copied to clipboard
Returns all dependency constraints declared on this collector.
Link copied to clipboard
operator fun DependencyCollector.invoke(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>)
operator fun <D : Dependency> DependencyCollector.invoke(dependency: D, configuration: Action<in D>)
operator fun DependencyCollector.invoke(dependencyNotation: CharSequence, configuration: Action<in ExternalModuleDependency>)
operator fun DependencyCollector.invoke(files: FileCollection, configuration: Action<in FileCollectionDependency>)
operator fun DependencyCollector.invoke(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>, configuration: Action<in ExternalModuleDependency>)
operator fun <D : Dependency> DependencyCollector.invoke(dependency: Provider<out D>, configuration: Action<in D>)
Add a dependency.
operator fun DependencyCollector.invoke(dependencyConstraint: DependencyConstraint, configuration: Action<in DependencyConstraint>)
operator fun DependencyCollector.invoke(dependencyConstraint: Provider<out DependencyConstraint>, configuration: Action<in DependencyConstraint>)
Add a dependency constraint.