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

create

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

Creates a dependency on a 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