DependencySubstitutions

Allows replacing dependencies with other dependencies.

Since

2.5

Types

Link copied to clipboard
interface Substitution
Provides a DSL-friendly mechanism for specifying the target of a substitution.

Functions

Link copied to clipboard
Adds a dependency substitution rule that is triggered for every dependency (including transitive) when the configuration is being resolved.
Link copied to clipboard
abstract fun module(notation: String): ComponentSelector
Create a ModuleComponentSelector from the provided input string.
Link copied to clipboard
Transforms the provided selector into a platform selector.
Link copied to clipboard
abstract fun project(path: String): ComponentSelector
Create a ProjectComponentSelector from the provided input string.
Link copied to clipboard
DSL-friendly mechanism to construct a dependency substitution for dependencies matching the provided selector.
Link copied to clipboard
abstract fun variant(selector: ComponentSelector, detailsAction: Action<in VariantSelectionDetails>): ComponentSelector
Transforms the supplied selector into a specific variant selector.