# Substitution

interface Substitution(source)

Provides a DSL-friendly mechanism for specifying the target of a substitution.

#### Since

2.5

## Functions

because
Link copied to clipboard
abstract fun because(reason: String): DependencySubstitutions.Substitution
Specify a reason for the substitution.
using
Link copied to clipboard
abstract fun using(notation: ComponentSelector): DependencySubstitutions.Substitution
Specify the target of the substitution.
withClassifier
Link copied to clipboard
abstract fun withClassifier(classifier: String): DependencySubstitutions.Substitution
Specifies that the substituted target dependency should use the specified classifier.
withoutArtifactSelectors
Link copied to clipboard
abstract fun withoutArtifactSelectors(): DependencySubstitutions.Substitution
Specifies that substituted dependencies must not carry any artifact selector.
withoutClassifier
Link copied to clipboard
abstract fun withoutClassifier(): DependencySubstitutions.Substitution
Specifies that the substituted dependency mustn't have any classifier.