gradle
8.3

# DependencyAdder

@Incubating
@NonExtensible
interface DependencyAdder

A `DependencyAdder` is used to add dependencies to a specific configuration.

## Functions

add
Link copied to clipboard
abstract fun add(dependencyNotation: CharSequence)
abstract fun add(dependency: Dependency)
abstract fun add(files: FileCollection)
abstract fun add(dependency: Provider<out Dependency>)
abstract fun add(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>)
Add a dependency.
abstract fun <D : Dependency?> add(dependency: D, configuration: Action<out Any>)
abstract fun add(dependencyNotation: CharSequence, configuration: Action<out Any>)
abstract fun add(files: FileCollection, configuration: Action<out Any>)
abstract fun <D : Dependency?> add(dependency: Provider<out D>, configuration: Action<out Any>)
abstract fun add(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>, configuration: Action<out Any>)
Add a dependency and configure it.
bundle
Link copied to clipboard
abstract fun <D : Dependency?> bundle(bundle: Iterable<out D>)
abstract fun <D : Dependency?> bundle(bundle: Provider<out Iterable<out D>>)
abstract fun <D : Dependency?> bundle(bundle: ProviderConvertible<out Iterable<out D>>)
Add a bundle.
abstract fun <D : Dependency?> bundle(bundle: Iterable<out D>, configuration: Action<out Any>)
abstract fun <D : Dependency?> bundle(bundle: Provider<out Iterable<out D>>, configuration: Action<out Any>)
abstract fun <D : Dependency?> bundle(bundle: ProviderConvertible<out Iterable<out D>>, configuration: Action<out Any>)
Add a bundle and configure them.
invoke
Link copied to clipboard
operator fun DependencyAdder.invoke(dependencyNotation: CharSequence)
operator fun DependencyAdder.invoke(dependency: Dependency)
operator fun DependencyAdder.invoke(files: FileCollection)
operator fun DependencyAdder.invoke(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>)
operator fun DependencyAdder.invoke(dependency: Provider<out Dependency>)
operator fun <D : Dependency> DependencyAdder.invoke(dependency: D, configuration: Action<in D>)
operator fun DependencyAdder.invoke(dependencyNotation: CharSequence, configuration: Action<in ExternalModuleDependency>)
operator fun DependencyAdder.invoke(files: FileCollection, configuration: Action<in FileCollectionDependency>)
operator fun DependencyAdder.invoke(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>, configuration: Action<in ExternalModuleDependency>)
operator fun <D : Dependency> DependencyAdder.invoke(dependency: Provider<out D>, configuration: Action<in D>)

Add a dependency.