# invoke

operator fun String.invoke(dependencyNotation: Any): Dependency?(source)
operator fun Configuration.invoke(dependencyNotation: Any): Dependency?(source)

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

4.1

#### Parameters

dependencyNotation

notation for the dependency to be added.

#### See also

DependencyHandler.add

inline operator fun String.invoke(dependencyNotation: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)
inline operator fun Configuration.invoke(dependencyNotation: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

4.1

#### Parameters

dependencyNotation

notation for the dependency to be added.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.add

inline operator fun <T : ModuleDependency> String.invoke(dependency: T, dependencyConfiguration: T.() -> Unit): T(source)
inline operator fun <T : ModuleDependency> Configuration.invoke(dependency: T, dependencyConfiguration: T.() -> Unit): T(source)

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

4.1

#### Parameters

dependency

dependency to be added.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.add

operator fun NamedDomainObjectProvider<Configuration>.invoke(dependencyNotation: Any): Dependency?(source)

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

8.3

#### Parameters

dependencyNotation

notation for the dependency to be added.

#### See also

DependencyHandler.add

@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependencyNotation: Any): Dependency?(source)

Adds a dependency to the given DependencyScopeConfiguration.

#### Return

The dependency.

#### Since

8.5

#### Parameters

dependencyNotation

notation for the dependency to be added.

#### See also

DependencyHandler.add

inline operator fun NamedDomainObjectProvider<Configuration>.invoke(dependencyNotation: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

8.3

#### Parameters

dependencyNotation

notation for the dependency to be added.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.add

@JvmName(name = "invokeDependencyScope")
@Incubating
inline operator fun NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependencyNotation: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)

Adds a dependency to the given DependencyScopeConfiguration.

#### Return

The dependency.

#### Since

8.5

#### Parameters

dependencyNotation

notation for the dependency to be added.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.add

inline operator fun <T : ModuleDependency> NamedDomainObjectProvider<Configuration>.invoke(dependency: T, dependencyConfiguration: T.() -> Unit): T(source)

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

8.3

#### Parameters

dependency

dependency to be added.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.add

@JvmName(name = "invokeDependencyScope")
@Incubating
inline operator fun <T : ModuleDependency> NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependency: T, dependencyConfiguration: T.() -> Unit): T(source)

Adds a dependency to the given DependencyScopeConfiguration.

#### Return

The dependency.

#### Since

8.5

#### Parameters

dependency

dependency to be added.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.add

operator fun <T : Any> Configuration.invoke(dependency: Provider<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)
operator fun <T : Any> String.invoke(dependency: Provider<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)

Adds a dependency provider to the given configuration.

#### Since

7.0

#### Parameters

dependency

the dependency provider to be added.

dependencyConfiguration

the configuration to be applied to the dependency

#### See also

DependencyHandler.addProvider

operator fun <T : Any> NamedDomainObjectProvider<Configuration>.invoke(dependency: Provider<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)

Adds a dependency provider to the given configuration.

#### Since

8.3

#### Parameters

dependency

the dependency provider to be added.

dependencyConfiguration

the configuration to be applied to the dependency

#### See also

DependencyHandler.addProvider

@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun <T : Any> NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependency: Provider<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)

Adds a dependency provider to the given DependencyScopeConfiguration.

#### Since

8.5

#### Parameters

dependency

the dependency provider to be added.

dependencyConfiguration

the configuration to be applied to the dependency

#### See also

DependencyHandler.addProvider

operator fun <T : Any> Configuration.invoke(dependency: Provider<T>)(source)
operator fun <T : Any> String.invoke(dependency: Provider<T>)(source)

Adds a dependency provider to the given configuration.

#### Since

7.0

#### Parameters

dependency

the dependency provider to be added.

#### See also

DependencyHandler.addProvider

operator fun <T : Any> NamedDomainObjectProvider<Configuration>.invoke(dependency: Provider<T>)(source)

Adds a dependency provider to the given configuration.

#### Since

8.3

#### Parameters

dependency

the dependency provider to be added.

#### See also

DependencyHandler.addProvider

@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun <T : Any> NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependency: Provider<T>)(source)

Adds a dependency provider to the given DependencyScopeConfiguration.

#### Since

8.5

#### Parameters

dependency

the dependency provider to be added.

#### See also

DependencyHandler.addProvider

operator fun <T : Any> Configuration.invoke(dependency: ProviderConvertible<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)
operator fun <T : Any> String.invoke(dependency: ProviderConvertible<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)

Adds a dependency provider to the given configuration.

#### Since

7.4

#### Parameters

dependency

the dependency provider to be added.

dependencyConfiguration

the configuration to be applied to the dependency

#### See also

DependencyHandler.addProviderConvertible

operator fun <T : Any> NamedDomainObjectProvider<Configuration>.invoke(dependency: ProviderConvertible<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)

Adds a dependency provider to the given configuration.

#### Since

8.3

#### Parameters

dependency

the dependency provider to be added.

dependencyConfiguration

the configuration to be applied to the dependency

#### See also

DependencyHandler.addProviderConvertible

@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun <T : Any> NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependency: ProviderConvertible<T>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)(source)

Adds a dependency provider to the given DependencyScopeConfiguration.

#### Since

8.5

#### Parameters

dependency

the dependency provider to be added.

dependencyConfiguration

the configuration to be applied to the dependency

#### See also

DependencyHandler.addProviderConvertible

operator fun <T : Any> Configuration.invoke(dependency: ProviderConvertible<T>)(source)
operator fun <T : Any> String.invoke(dependency: ProviderConvertible<T>)(source)

Adds a dependency provider to the given configuration.

#### Since

7.4

#### Parameters

dependency

the dependency provider to be added.

#### See also

DependencyHandler.addProviderConvertible

operator fun <T : Any> NamedDomainObjectProvider<Configuration>.invoke(dependency: ProviderConvertible<T>)(source)

Adds a dependency provider to the given configuration.

#### Since

8.3

#### Parameters

dependency

the dependency provider to be added.

#### See also

DependencyHandler.addProviderConvertible

@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun <T : Any> NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependency: ProviderConvertible<T>)(source)

Adds a dependency provider to the given DependencyScopeConfiguration.

#### Since

8.5

#### Parameters

dependency

the dependency provider to be added.

#### See also

DependencyHandler.addProviderConvertible

inline operator fun invoke(configuration: DependencyHandlerScope.() -> Unit)(source)

Configures the dependencies.

#### Since

4.1

operator fun String.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null): ExternalModuleDependency(source)
operator fun Configuration.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null): ExternalModuleDependency(source)

### Deprecated

Use single-string notation or DependencyFactory instead

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

4.3

#### Parameters

group

the group of the module to be added as a dependency.

name

the name of the module to be added as a dependency.

version

the optional version of the module to be added as a dependency.

configuration

the optional configuration of the module to be added as a dependency.

classifier

the optional classifier of the module artifact to be added as a dependency.

ext

the optional extension of the module artifact to be added as a dependency.

#### See also

DependencyHandler.add

inline operator fun String.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)
inline operator fun Configuration.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)

### Deprecated

Use single-string notation or DependencyFactory instead

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

4.3

#### Parameters

group

the group of the module to be added as a dependency.

name

the name of the module to be added as a dependency.

version

the optional version of the module to be added as a dependency.

configuration

the optional configuration of the module to be added as a dependency.

classifier

the optional classifier of the module artifact to be added as a dependency.

ext

the optional extension of the module artifact to be added as a dependency.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.create
DependencyHandler.add

operator fun NamedDomainObjectProvider<Configuration>.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null): ExternalModuleDependency(source)

### Deprecated

Use single-string notation or DependencyFactory instead

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

8.3

#### Parameters

group

the group of the module to be added as a dependency.

name

the name of the module to be added as a dependency.

version

the optional version of the module to be added as a dependency.

configuration

the optional configuration of the module to be added as a dependency.

classifier

the optional classifier of the module artifact to be added as a dependency.

ext

the optional extension of the module artifact to be added as a dependency.

#### See also

DependencyHandler.add

@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null): ExternalModuleDependency(source)

### Deprecated

Use single-string notation or DependencyFactory instead

Adds a dependency to the given DependencyScopeConfiguration.

#### Return

The dependency.

#### Since

8.5

#### Parameters

group

the group of the module to be added as a dependency.

name

the name of the module to be added as a dependency.

version

the optional version of the module to be added as a dependency.

configuration

the optional configuration of the module to be added as a dependency.

classifier

the optional classifier of the module artifact to be added as a dependency.

ext

the optional extension of the module artifact to be added as a dependency.

#### See also

DependencyHandler.add

inline operator fun NamedDomainObjectProvider<Configuration>.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)

### Deprecated

Use single-string notation or DependencyFactory instead

Adds a dependency to the given configuration.

#### Return

The dependency.

#### Since

8.3

#### Parameters

group

the group of the module to be added as a dependency.

name

the name of the module to be added as a dependency.

version

the optional version of the module to be added as a dependency.

configuration

the optional configuration of the module to be added as a dependency.

classifier

the optional classifier of the module artifact to be added as a dependency.

ext

the optional extension of the module artifact to be added as a dependency.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.create
DependencyHandler.add

@JvmName(name = "invokeDependencyScope")
@Incubating
inline operator fun NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency(source)

### Deprecated

Use single-string notation or DependencyFactory instead

Adds a dependency to the given DependencyScopeConfiguration.

#### Return

The dependency.

#### Since

8.5

#### Parameters

group

the group of the module to be added as a dependency.

name

the name of the module to be added as a dependency.

version

the optional version of the module to be added as a dependency.

configuration

the optional configuration of the module to be added as a dependency.

classifier

the optional classifier of the module artifact to be added as a dependency.

ext

the optional extension of the module artifact to be added as a dependency.

dependencyConfiguration

expression to use to configure the dependency.

#### See also

DependencyHandler.create
DependencyHandler.add