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

module

abstract fun module(notation: Any): Dependency

Creates a dependency on a client module.

Parameters

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

Return
The dependency.

abstract fun module(notation: Any, configureClosure: Closure<Any>): Dependency

Creates a dependency on a client module. The dependency is configured using the given closure before it is returned.

Parameters

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

configureClosure - The closure to use to configure the dependency.

Return
The dependency.