For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

create

abstract fun create(dependencyNotation: Any): Dependency(source)

Creates a dependency without adding it to a configuration.

Return

The dependency.

Since

1.0

Parameters

dependencyNotation

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


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

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

Return

The dependency.

Since

1.0

Parameters

dependencyNotation

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

configureClosure

The closure to use to configure the dependency.