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:
project(":api")
ModuleComponentSelector
or ProjectComponentSelector
notation
- the notation that gets parsed into an instance of ComponentSelector.
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:
project(":api")
ModuleComponentSelector
or ProjectComponentSelector
notation
- the notation that gets parsed into an instance of ComponentSelector.
Since
4.5