Table of Contents
API Documentation: | DependencyConstraintHandler |
---|
A DependencyConstraintHandler
is used to declare dependency constraints.
Method | Description |
add(configurationName, dependencyConstraintNotation) | Adds a dependency constraint to the given configuration. |
add(configurationName, dependencyNotation, configureAction) | Adds a dependency constraint to the given configuration, and configures the dependency constraint using the given closure. |
create(dependencyConstraintNotation) | Creates a dependency constraint without adding it to a configuration. |
create(dependencyConstraintNotation, configureAction) | Creates a dependency constraint without adding it to a configuration, and configures the dependency constraint using the given closure. |
enforcedPlatform(notation) | Declares a constraint on an enforced platform. If the target coordinates represent multiple potential components, the platform component will be selected, instead of the library. An enforced platform is a platform for which the direct dependencies are forced, meaning that they would override any other version found in the graph. |
enforcedPlatform(notation, configureAction) | Declares a constraint on an enforced platform. If the target coordinates represent multiple potential components, the platform component will be selected, instead of the library. An enforced platform is a platform for which the direct dependencies are forced, meaning that they would override any other version found in the graph. |
DependencyConstraint
add
(String
configurationName, Object
dependencyConstraintNotation)
Adds a dependency constraint to the given configuration.
DependencyConstraint
add
(String
configurationName, Object
dependencyNotation, Action
<? super DependencyConstraint
>
configureAction)
Action
<? super DependencyConstraint
>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)
Action
<? super DependencyConstraint
>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. If the target coordinates represent multiple potential components, the platform component will be selected, instead of the library. An enforced platform is a platform for which the direct dependencies are forced, meaning that they would override any other version found in the graph.
DependencyConstraint
enforcedPlatform
(Object
notation, Action
<? super DependencyConstraint
>
configureAction)
Action
<? super DependencyConstraint
>Declares a constraint on an enforced platform. If the target coordinates represent multiple potential components, the platform component will be selected, instead of the library. An enforced platform is a platform for which the direct dependencies are forced, meaning that they would override any other version found in the graph.