api / org.gradle.kotlin.dsl / org.gradle.api.artifacts.dsl.DependencyHandler / module

module

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

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

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.

Return
The 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

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

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.

Return
The dependency.

See Also

DependencyHandler.create

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

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

Parameters

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

clientModuleConfiguration - The expression to use to configure the dependency.

Return
The dependency.