gradle
Toggle table of contents
9.1.0-20250628022042+0000
API
Platform filter
API
Switch theme
Search in API
gradle
gradle
/
org.gradle.api.artifacts
/
DependencySubstitution
Dependency
Substitution
API
interface
DependencySubstitution
(
source
)
Provides means to substitute a different dependency during resolution.
Since
2.5
Members
Functions
artifact
Selection
Link copied to clipboard
API
abstract
fun
artifactSelection
(
action
:
Action
<
in
ArtifactSelectionDetails
>
)
Configures the artifact selection for the substitution.
get
Requested
Link copied to clipboard
API
abstract
fun
getRequested
(
)
:
ComponentSelector
The requested dependency, before it is resolved.
use
Target
Link copied to clipboard
API
abstract
fun
useTarget
(
notation
:
Any
)
abstract
fun
useTarget
(
notation
:
Any
,
reason
:
String
)
This method can be used to replace a dependency before it is resolved, e.g.