@NonExtensible @Incubating public interface DependencyConstraintFactory
DependencyConstraint
instances, with strong typing.
An instance of the factory can be injected into a task, plugin or other object by annotating a public constructor or property getter method with Inject
.
Note: This interface is not intended for implementation by build script or plugin authors.
Modifier and Type | Method | Description |
---|---|---|
DependencyConstraint |
create(java.lang.CharSequence dependencyConstraintNotation) |
Create a
DependencyConstraint from the "group:name:version" notation. |
DependencyConstraint |
create(java.lang.String group,
java.lang.String name,
java.lang.String version) |
Create a
DependencyConstraint from a series of strings. |
DependencyConstraint |
create(MinimalExternalModuleDependency dependency) |
Create a
DependencyConstraint from a MinimalExternalModuleDependency . |
DependencyConstraint |
create(ProjectDependency project) |
Create a
DependencyConstraint from a ProjectDependency . |
DependencyConstraint create(java.lang.CharSequence dependencyConstraintNotation)
DependencyConstraint
from the "group:name:version"
notation.
Note that no classifier or extension is accepted here.
dependencyConstraintNotation
- the dependency constraint notationDependencyConstraint create(@Nullable java.lang.String group, java.lang.String name, @Nullable java.lang.String version)
DependencyConstraint
from a series of strings.group
- the group (optional)name
- the nameversion
- the version (optional)DependencyConstraint create(MinimalExternalModuleDependency dependency)
DependencyConstraint
from a MinimalExternalModuleDependency
.dependency
- the dependencyDependencyConstraint create(ProjectDependency project)
DependencyConstraint
from a ProjectDependency
.project
- the project dependency