module

fun Dependencies.module(group: String?, name: String, version: String?): ExternalModuleDependency(source)

Creates a dependency based on the group, name and version (GAV) coordinates.

Since

8.0


fun DependencyHandler.module(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null): ClientModule(source)

Deprecated

Will be removed in Gradle 9.0

Creates a dependency on a client module without adding it to a configuration.

Return

The dependency.

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.create

fun DependencyHandler.module(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null, clientModuleConfiguration: ClientModuleScope.() -> Unit): ClientModule(source)

Deprecated

Will be removed in Gradle 9.0

Creates a dependency on a client module without adding it to a configuration.

Return

The dependency.

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.

clientModuleConfiguration

The expression to use to configure the dependency.

See also

DependencyHandler.create

fun DependencyHandler.module(notation: Any, clientModuleConfiguration: ClientModuleScope.() -> Unit): ClientModule(source)

Deprecated

Will be removed in Gradle 9.0

Creates a dependency on a client module without adding it to a configuration.

Return

The dependency.

Parameters

notation

The module notation, in one of the notations described at DependencyHandler.

clientModuleConfiguration

The expression to use to configure the dependency.