public interface DependencySubstitution
Modifier and Type | Method | Description |
---|---|---|
void |
artifactSelection(Action<? super ArtifactSelectionDetails> action) |
Configures the artifact selection for the substitution.
|
ComponentSelector |
getRequested() |
The requested dependency, before it is resolved.
|
void |
useTarget(java.lang.Object notation) |
This method can be used to replace a dependency before it is resolved,
e.g. change group, name or version (or all three of them), or replace it
with a project dependency.
|
void |
useTarget(java.lang.Object notation,
java.lang.String reason) |
This method can be used to replace a dependency before it is resolved,
e.g. change group, name or version (or all three of them), or replace it
with a project dependency and provides a human readable reason for diagnostics.
|
ComponentSelector getRequested()
void useTarget(java.lang.Object notation)
project(":api")
ModuleComponentSelector
or ProjectComponentSelector
notation
- the notation that gets parsed into an instance of ComponentSelector
.void useTarget(java.lang.Object notation, java.lang.String reason)
project(":api")
ModuleComponentSelector
or ProjectComponentSelector
notation
- the notation that gets parsed into an instance of ComponentSelector
.void artifactSelection(Action<? super ArtifactSelectionDetails> action)
action
- the artifact selection configuration action