Table of Contents
API Documentation: | GradleDependencies |
---|
Known Subtypes: |
|
---|
Dependency APIs available for dependencies
blocks that can build software that relies on Gradle APIs.
Method | Description |
gradleApi() | Creates a dependency on the API of the current version of Gradle. |
gradleTestKit() | Creates a dependency on the Gradle test-kit API. |
localGroovy() | Creates a dependency on the version of Groovy that is distributed with the current version of Gradle. |
module(dependencyNotation) | Create an |
module(group, name, version) | Create an |
project() | Returns the current project as a |
project(projectPath) | Converts an absolute or relative path to a project into a |
Creates a dependency on the API of the current version of Gradle.
Creates a dependency on the Gradle test-kit API.
Creates a dependency on the version of Groovy that is distributed with the current version of Gradle.
Create an ExternalModuleDependency
from the given notation.
ExternalModuleDependency
module
(String
group, String
name, String
version)
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.