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

create

abstract fun create(dependencyNotation: Any): Dependency

Creates a dependency without adding it to a configuration.

Parameters

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

Return
The dependency.

abstract fun create(dependencyNotation: Any, configureClosure: Closure<Any>): Dependency

Creates a dependency without adding it to a configuration, and configures the dependency using the given closure.

Parameters

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

configureClosure - The closure to use to configure the dependency.

Return
The dependency.