GradleDependencies

API Documentation:GradleDependencies

Note: This class is incubating and may change in a future version of Gradle.

Dependency APIs available for dependencies blocks that can build software that relies on Gradle APIs.

Properties

No properties

Methods

MethodDescription
gradleApi()
Incubating

Creates a dependency on the API of the current version of Gradle.

gradleTestKit()
Incubating

Creates a dependency on the Gradle test-kit API.

localGroovy()
Incubating

Creates a dependency on the version of Groovy that is distributed with the current version of Gradle.

module(dependencyNotation)
Incubating

Create an ExternalModuleDependency from the given notation.

module(group, name, version)
Incubating

Create an ExternalModuleDependency from a series of strings.

project()
Incubating

Returns the current project as a ProjectDependency.

project(projectPath)
Incubating

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

Dependency gradleApi()

Note: This method is incubating and may change in a future version of Gradle.

Creates a dependency on the API of the current version of Gradle.

Dependency gradleTestKit()

Note: This method is incubating and may change in a future version of Gradle.

Creates a dependency on the Gradle test-kit API.

Dependency localGroovy()

Note: This method is incubating and may change in a future version of Gradle.

Creates a dependency on the version of Groovy that is distributed with the current version of Gradle.

ExternalModuleDependency module(CharSequence dependencyNotation)

Note: This method is incubating and may change in a future version of Gradle.

Create an ExternalModuleDependency from the given notation.

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

Note: This method is incubating and may change in a future version of Gradle.

Create an ExternalModuleDependency from a series of strings.

Note: This method is incubating and may change in a future version of Gradle.

Returns the current project as a ProjectDependency.

ProjectDependency project(String projectPath)

Note: This method is incubating and may change in a future version of Gradle.

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.