Table of Contents
API Documentation: | TestFixturesDependencyModifiers |
---|
Known Subtypes: |
|
---|
Note: This class is incubating and may change in a future version of Gradle.
Dependency APIs for using Test Fixtures in dependencies
blocks.
NOTE: This API is incubating and is likely to change until it's made stable.
Method | Description |
module(dependencyNotation) | Incubating Create an |
module(group, name, version) | Incubating Create an |
project() | Incubating Returns the current project as a |
project(projectPath) | Incubating Converts an absolute or relative path to a project into a |
testFixtures(dependency) | Incubating Takes a given |
testFixtures(dependencyNotation) | Incubating Create an |
testFixtures(providerToDependency) | Incubating Takes a given |
testFixtures(providerConvertibleToDependency) | Incubating Takes a given |
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.
ProjectDependency
project
()
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.
Note: This method is incubating and may change in a future version of Gradle.
Takes a given ModuleDependency
and modifies it to select the Test Fixtures variant of the given module.
ExternalModuleDependency
testFixtures
(CharSequence
dependencyNotation)
Note: This method is incubating and may change in a future version of Gradle.
Create an ExternalModuleDependency
from the given notation and modifies it to select the Test Fixtures variant of the given module.
Provider
<? extends ExternalModuleDependency
>
testFixtures
(Provider
<? extends ExternalModuleDependency
>
providerToDependency)
Provider
<? extends ExternalModuleDependency
>Provider
<? extends ExternalModuleDependency
>Note: This method is incubating and may change in a future version of Gradle.
Takes a given Provider
to a ExternalModuleDependency
and modifies the dependency to select the Test Fixtures variant of the given module.
Provider
<? extends MinimalExternalModuleDependency
>
testFixtures
(ProviderConvertible
<? extends MinimalExternalModuleDependency
>
providerConvertibleToDependency)
Provider
<? extends MinimalExternalModuleDependency
>ProviderConvertible
<? extends MinimalExternalModuleDependency
>Note: This method is incubating and may change in a future version of Gradle.
Takes a given Provider
to a MinimalExternalModuleDependency
and modifies the dependency to select the Test Fixtures variant of the given module.