DependencySubstitutions.Substitution (Gradle API 5.1.1)
Date: 2019-01-11

Package org.gradle.api.artifacts

## Interface DependencySubstitutions.Substitution

- Enclosing interface:
    DependencySubstitutions

      public static interface DependencySubstitutions.Substitution

  Provides a DSL-friendly mechanism for specifying the target of a substitution.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `DependencySubstitutions.Substitution` | `because​(String reason)` | Specify a reason for the substition.
    `void` | `with​(ComponentSelector notation)` | Specify the target of the substitution.

- - ### Method Detail

    - #### because

          @Incubating
          DependencySubstitutions.Substitution because​(String reason)

      Specify a reason for the substition. This is optional
      Parameters:
        `reason` - the reason for the selection
      Returns:
        the substitution
      Since:
        4.5

    - #### with

          void with​(ComponentSelector notation)

      Specify the target of the substitution.