T
- the type of the requested component.@Incubating public interface DependencySubstitution<T extends ComponentSelector>
Modifier and Type | Method and Description |
---|---|
T |
getRequested()
The dependency, before it is resolved.
|
void |
useTarget(Object notation)
This method can be used to replace a dependency before it is resolved,
e.g.
|
T getRequested()
void useTarget(Object notation)
notation
- the notation that gets parsed into an instance of ComponentSelector
.
You can pass Strings like 'org.gradle:gradle-core:2.4',
Maps like [group: 'org.gradle', name: 'gradle-core', version: '2.4'],
Projects like project(":api")
,
or instances of ModuleComponentSelector
.