For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

TestFixturesDependencyModifier

Implementation for the test fixtures dependency modifier.

Since

8.0

See also

modifyImplementation(ModuleDependency)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
operator fun <D : ModuleDependency> DependencyModifier.invoke(dependency: D): D

Modifies a dependency to select the variant of the given module.

Link copied to clipboard
fun <D : ModuleDependency?> modify(dependency: D): D
Takes a given ModuleDependency and modifies the dependency to select the variant of the given module.
fun modify(dependencyNotation: CharSequence): ExternalModuleDependency
Create an ExternalModuleDependency from the given notation and modifies it to select the variant of the given module as described in modify.
fun <D : ModuleDependency?> modify(providerToDependency: Provider<D>): Provider<D>
Takes a given Provider to a ExternalModuleDependency and modifies the dependency to select the variant of the given module as described in modify.
Takes a given Provider to a MinimalExternalModuleDependency and modifies the dependency to select the variant of the given module as described in modify.