GradleDependencies, JvmComponentDependencies, PlatformDependencyModifiers, TestFixturesDependencyModifiers@Incubating public interface Dependencies
dependencies blocks.| Modifier and Type | Method | Description |
|---|---|---|
DependencyFactory |
getDependencyFactory() |
A dependency factory is used to convert supported dependency notations into
Dependency instances. |
default ExternalModuleDependency |
module(java.lang.CharSequence dependencyNotation) |
Create an
ExternalModuleDependency from the given notation. |
default ExternalModuleDependency |
module(java.lang.String group,
java.lang.String name,
java.lang.String version) |
Create an
ExternalModuleDependency from a series of strings. |
ProjectDependency |
project() |
Returns the current project as a
ProjectDependency. |
ProjectDependency |
project(java.lang.String projectPath) |
Converts an absolute or relative path to a project into a
ProjectDependency. |
@Inject DependencyFactory getDependencyFactory()
Dependency instances.DependencyFactoryProjectDependency project(java.lang.String projectPath)
ProjectDependency. Project paths are separated by colons.
This method fails if the project cannot be found.projectPath - an absolute or relative path (from the current project) to a projectProjectDependency for the given pathProject.project(String)ProjectDependency project()
ProjectDependency.default ExternalModuleDependency module(java.lang.CharSequence dependencyNotation)
ExternalModuleDependency from the given notation.dependencyNotation - dependency to addValid dependency notation for this methoddefault ExternalModuleDependency module(@Nullable java.lang.String group, java.lang.String name, @Nullable java.lang.String version)
ExternalModuleDependency from a series of strings.group - the group (optional)name - the nameversion - the version (optional)