@Incubating @NonExtensible public interface DependencyAdder
DependencyAdder
is used to add dependencies to a specific configuration.add(...)
unnecessary from the DSL.
call(...)
equivalents for all the add(...)
methods.invoke(...)
equivalents for all the add(...)
methods.extension module for Groovy DSL
or
extension functions for Kotlin DSL
.Modifier and Type | Method | Description |
---|---|---|
<D extends Dependency> |
add(D dependency,
Action<? super D> configuration) |
Add a dependency and configure it.
|
void |
add(java.lang.CharSequence dependencyNotation) |
Add a dependency.
|
void |
add(java.lang.CharSequence dependencyNotation,
Action<? super ExternalModuleDependency> configuration) |
Add a dependency and configure it.
|
void |
add(Dependency dependency) |
Add a dependency.
|
void |
add(FileCollection files) |
Add a dependency.
|
void |
add(FileCollection files,
Action<? super FileCollectionDependency> configuration) |
Add a dependency and configure it.
|
<D extends Dependency> |
add(Provider<? extends D> dependency,
Action<? super D> configuration) |
Add a dependency and configure it.
|
void |
add(Provider<? extends Dependency> dependency) |
Add a dependency.
|
void |
add(ProviderConvertible<? extends MinimalExternalModuleDependency> externalModule) |
Add a dependency.
|
void |
add(ProviderConvertible<? extends MinimalExternalModuleDependency> externalModule,
Action<? super ExternalModuleDependency> configuration) |
Add a dependency and configure it.
|
<D extends Dependency> |
bundle(java.lang.Iterable<? extends D> bundle) |
Add a bundle.
|
<D extends Dependency> |
bundle(java.lang.Iterable<? extends D> bundle,
Action<? super D> configuration) |
Add a bundle and configure them.
|
<D extends Dependency> |
bundle(Provider<? extends java.lang.Iterable<? extends D>> bundle) |
Add a bundle.
|
<D extends Dependency> |
bundle(Provider<? extends java.lang.Iterable<? extends D>> bundle,
Action<? super D> configuration) |
Add a bundle and configure them.
|
<D extends Dependency> |
bundle(ProviderConvertible<? extends java.lang.Iterable<? extends D>> bundle) |
Add a bundle.
|
<D extends Dependency> |
bundle(ProviderConvertible<? extends java.lang.Iterable<? extends D>> bundle,
Action<? super D> configuration) |
Add a bundle and configure them.
|
void add(java.lang.CharSequence dependencyNotation)
dependencyNotation
- dependency to addValid dependency notation for this method
void add(java.lang.CharSequence dependencyNotation, Action<? super ExternalModuleDependency> configuration)
dependencyNotation
- dependency to addconfiguration
- an action to configure the dependencyValid dependency notation for this method
void add(FileCollection files)
files
- files to add as a dependencyDependencyFactory.create(FileCollection)
void add(FileCollection files, Action<? super FileCollectionDependency> configuration)
files
- files to add as a dependencyconfiguration
- an action to configure the dependencyDependencyFactory.create(FileCollection)
void add(ProviderConvertible<? extends MinimalExternalModuleDependency> externalModule)
externalModule
- external module to add as a dependencyvoid add(ProviderConvertible<? extends MinimalExternalModuleDependency> externalModule, Action<? super ExternalModuleDependency> configuration)
externalModule
- external module to add as a dependencyconfiguration
- an action to configure the dependencyvoid add(Dependency dependency)
dependency
- dependency to add<D extends Dependency> void add(D dependency, Action<? super D> configuration)
dependency
- dependency to addconfiguration
- an action to configure the dependencyvoid add(Provider<? extends Dependency> dependency)
dependency
- dependency to add<D extends Dependency> void add(Provider<? extends D> dependency, Action<? super D> configuration)
dependency
- dependency to addconfiguration
- an action to configure the dependency<D extends Dependency> void bundle(java.lang.Iterable<? extends D> bundle)
bundle
- the bundle to add<D extends Dependency> void bundle(java.lang.Iterable<? extends D> bundle, Action<? super D> configuration)
bundle
- the bundle to addconfiguration
- an action to configure each dependency in the bundle<D extends Dependency> void bundle(Provider<? extends java.lang.Iterable<? extends D>> bundle)
bundle
- the bundle to add<D extends Dependency> void bundle(Provider<? extends java.lang.Iterable<? extends D>> bundle, Action<? super D> configuration)
bundle
- the bundle to addconfiguration
- an action to configure each dependency in the bundle<D extends Dependency> void bundle(ProviderConvertible<? extends java.lang.Iterable<? extends D>> bundle)
bundle
- the bundle to add<D extends Dependency> void bundle(ProviderConvertible<? extends java.lang.Iterable<? extends D>> bundle, Action<? super D> configuration)
bundle
- the bundle to addconfiguration
- an action to configure each dependency in the bundle