@Incubating public interface DependencyConstraintHandler
A DependencyConstraintHandler
is used to declare dependency constraints.
Modifier and Type | Method | Description |
---|---|---|
DependencyConstraint |
add(String configurationName,
Object dependencyConstraintNotation) |
Adds a dependency constraint to the given configuration.
|
DependencyConstraint |
add(String configurationName,
Object dependencyNotation,
Action<? super DependencyConstraint> configureAction) |
Adds a dependency constraint to the given configuration, and configures the dependency constraint using the given closure.
|
DependencyConstraint |
create(Object dependencyConstraintNotation) |
Creates a dependency constraint without adding it to a configuration.
|
DependencyConstraint |
create(Object dependencyConstraintNotation,
Action<? super DependencyConstraint> configureAction) |
Creates a dependency constraint without adding it to a configuration, and configures the dependency constraint using
the given closure.
|
DependencyConstraint |
enforcedPlatform(Object notation) |
Declares a constraint on an enforced platform.
|
DependencyConstraint |
enforcedPlatform(Object notation,
Action<? super DependencyConstraint> configureAction) |
Declares a constraint on an enforced platform.
|
DependencyConstraint |
platform(Object notation) |
Declares a constraint on a platform.
|
DependencyConstraint |
platform(Object notation,
Action<? super DependencyConstraint> configureAction) |
Declares a constraint on a platform.
|
DependencyConstraint add(String configurationName, Object dependencyConstraintNotation)
configurationName
- The name of the configuration.dependencyConstraintNotation
- the constraintDependencyConstraint add(String configurationName, Object dependencyNotation, Action<? super DependencyConstraint> configureAction)
configurationName
- The name of the configuration.dependencyNotation
- The dependency constraint notationconfigureAction
- The closure to use to configure the dependency constraint.DependencyConstraint create(Object dependencyConstraintNotation)
dependencyConstraintNotation
- The dependency constraint notation.DependencyConstraint create(Object dependencyConstraintNotation, Action<? super DependencyConstraint> configureAction)
dependencyConstraintNotation
- The dependency constraint notation.configureAction
- The closure to use to configure the dependency.@Incubating DependencyConstraint platform(Object notation)
notation
- the coordinates of the platform@Incubating DependencyConstraint platform(Object notation, Action<? super DependencyConstraint> configureAction)
notation
- the coordinates of the platformconfigureAction
- the dependency configuration block@Incubating DependencyConstraint enforcedPlatform(Object notation)
notation
- the coordinates of the platform@Incubating DependencyConstraint enforcedPlatform(Object notation, Action<? super DependencyConstraint> configureAction)
notation
- the coordinates of the platformconfigureAction
- the dependency configuration block