Dependencies

API Documentation:Dependencies
Known Subtypes:
GradleDependencies

Universal APIs that are available for all dependencies blocks.

Properties

No properties

Methods

MethodDescription
module(dependencyNotation)

Create an ExternalModuleDependency from the given notation.

module(group, name, version)
Deprecated

Create an ExternalModuleDependency from a series of strings.

project()

Returns the current project as a ProjectDependency.

project(projectPath)

Converts an absolute or relative path to a project into a ProjectDependency. Project paths are separated by colons. This method fails if the project cannot be found.

Script blocks

No script blocks

Method details

ExternalModuleDependency module(CharSequence dependencyNotation)

Create an ExternalModuleDependency from the given notation.

ExternalModuleDependency module(String group, String name, String version)

Note: This method is deprecated and will be removed in the next major version of Gradle.

Create an ExternalModuleDependency from a series of strings.

Returns the current project as a ProjectDependency.

ProjectDependency project(String projectPath)

Converts an absolute or relative path to a project into a ProjectDependency. Project paths are separated by colons. This method fails if the project cannot be found.