@Incubating interface DependencySubstitutions
Allows replacing dependencies with other dependencies.
Since
2.5
interface Substitution
Provides a DSL-friendly mechanism for specifying the target of a substitution. |
abstract fun all(rule: Action<in DependencySubstitution>): DependencySubstitutions
Adds a dependency substitution rule that is triggered for every dependency (including transitive) when the configuration is being resolved. The action receives an instance of DependencySubstitution that can be used to find out what dependency is being resolved and to influence the resolution process. Example: The rules are evaluated in order they are declared. Rules are evaluated after forced modules are applied (see ResolutionStrategy#force(Object...)
|
|
abstract fun module(notation: String): ComponentSelector
Create a ModuleComponentSelector from the provided input string. Strings must be in the format "{group}:{module}:{version}". |
|
abstract fun project(path: String): ComponentSelector
Create a ProjectComponentSelector from the provided input string. Strings must be in the format ":path". |
|
abstract fun substitute(substitutedDependency: ComponentSelector): Substitution
DSL-friendly mechanism to construct a dependency substitution for dependencies matching the provided selector. Examples:
|