Provides means to substitute a different dependency during resolution.
Type | Name and description |
---|---|
ComponentSelector |
getRequested() The requested dependency, before it is resolved. |
void |
useTarget(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. |
The requested dependency, before it is resolved. The requested dependency does not change even if there are multiple dependency substitution rules that manipulate the dependency metadata.
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. Accepted notations are:
project(":api")
ModuleComponentSelector
or ProjectComponentSelector
notation
- the notation that gets parsed into an instance of ComponentSelector.