@Incubating @NonExtensible public interface DependencyCollector
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()
.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.
|
void |
addConstraint(DependencyConstraint dependencyConstraint) |
Add a dependency constraint.
|
void |
addConstraint(DependencyConstraint dependencyConstraint,
Action<? super DependencyConstraint> configuration) |
Add a dependency constraint and configure it.
|
void |
addConstraint(Provider<? extends DependencyConstraint> dependencyConstraint) |
Add a dependency constraint, using a
Provider to lazily create the constraint. |
void |
addConstraint(Provider<? extends DependencyConstraint> dependencyConstraint,
Action<? super DependencyConstraint> configuration) |
Add a dependency constraint and configure it, using a
Provider to lazily create the constraint. |
<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.
|
Provider<java.util.Set<Dependency>> |
getDependencies() |
Returns all dependencies declared on this collector.
|
Provider<java.util.Set<DependencyConstraint>> |
getDependencyConstraints() |
Returns all dependency constraints declared on this collector.
|
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 dependencyvoid addConstraint(DependencyConstraint dependencyConstraint)
dependencyConstraint
- dependency constraint to addvoid addConstraint(DependencyConstraint dependencyConstraint, Action<? super DependencyConstraint> configuration)
dependencyConstraint
- dependency constraint to addconfiguration
- an action to configure the dependency constraintvoid addConstraint(Provider<? extends DependencyConstraint> dependencyConstraint)
Provider
to lazily create the constraint.dependencyConstraint
- dependency constraint to addvoid addConstraint(Provider<? extends DependencyConstraint> dependencyConstraint, Action<? super DependencyConstraint> configuration)
Provider
to lazily create the constraint.dependencyConstraint
- dependency constraint to addconfiguration
- an action to configure the dependency constraint<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 bundleProvider<java.util.Set<Dependency>> getDependencies()
Provider<java.util.Set<DependencyConstraint>> getDependencyConstraints()