public static interface DependencySubstitutions.Substitution
Modifier and Type | Method | Description |
---|---|---|
DependencySubstitutions.Substitution |
because(String reason) |
Specify a reason for the substitution.
|
DependencySubstitutions.Substitution |
using(ComponentSelector notation) |
Specify the target of the substitution.
|
void |
with(ComponentSelector notation) |
Deprecated.
Use
using(ComponentSelector) instead. |
DependencySubstitutions.Substitution |
withClassifier(String classifier) |
Specifies that the substituted target dependency should use the specified classifier.
|
DependencySubstitutions.Substitution |
withoutArtifactSelectors() |
Specifies that substituted dependencies must not carry any artifact selector.
|
DependencySubstitutions.Substitution |
withoutClassifier() |
Specifies that the substituted dependency mustn't have any classifier.
|
DependencySubstitutions.Substitution because(String reason)
reason
- the reason for the selectionDependencySubstitutions.Substitution withClassifier(String classifier)
DependencySubstitutions.Substitution withoutClassifier()
DependencySubstitutions.Substitution withoutArtifactSelectors()
@Deprecated void with(ComponentSelector notation)
using(ComponentSelector)
instead. This method will be removed in Gradle 8.0.DependencySubstitutions.Substitution using(ComponentSelector notation)
with(ComponentSelector)
method which supports chaining.