@Incubating interface DependencyResolveDetails
Provides details about a dependency when it is resolved. Provides means to manipulate dependency metadata when it is resolved.
Since
1.4
abstract fun because(description: String): DependencyResolveDetails
Sets a human readable description for the reason the component is selected. The description will only be used if the rule is actually selecting a target, either using |
|
abstract fun getRequested(): ModuleVersionSelector
The module, before it is resolved. The requested module does not change even if there are multiple dependency resolve rules that manipulate the dependency metadata. |
|
abstract fun getTarget(): ModuleVersionSelector
The target module selector used to resolve the dependency. Never returns null. Target module is updated when methods like |
|
abstract fun useTarget(notation: Any): Unit
Allows to override the details of the dependency (see |
|
abstract fun useVersion(version: String): Unit
Allows to override the version when the dependency If you need to change not only the version but also group or name please use the |