@Incubating interface DependencySubstitution
Provides means to substitute a different dependency during resolution.
Since
2.5
abstract fun getRequested(): ComponentSelector
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. |
|
abstract fun useTarget(notation: Any): Unit
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:
abstract fun useTarget(notation: Any, reason: String): Unit
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. Accepted notations are:
|