# DependencySubstitutions

interface DependencySubstitutions(source)

Allows replacing dependencies with other dependencies.

#### Since

2.5

## Types

Substitution
Link copied to clipboard
interface Substitution
Provides a DSL-friendly mechanism for specifying the target of a substitution.

## Functions

all
Link copied to clipboard
abstract fun all(rule: Action<in DependencySubstitution>): DependencySubstitutions
Adds a dependency substitution rule that is triggered for every dependency (including transitive) when the configuration is being resolved.
module
Link copied to clipboard
abstract fun module(notation: String): ComponentSelector
Create a ModuleComponentSelector from the provided input string.
platform
Link copied to clipboard
abstract fun platform(selector: ComponentSelector): ComponentSelector
Transforms the provided selector into a platform selector.
project
Link copied to clipboard
abstract fun project(path: String): ComponentSelector
Create a ProjectComponentSelector from the provided input string.
substitute
Link copied to clipboard
abstract fun substitute(substitutedDependency: ComponentSelector): DependencySubstitutions.Substitution
DSL-friendly mechanism to construct a dependency substitution for dependencies matching the provided selector.
variant
Link copied to clipboard
abstract fun variant(selector: ComponentSelector, detailsAction: Action<in VariantSelectionDetails>): ComponentSelector
Transforms the supplied selector into a specific variant selector.