Package org.gradle.api.artifacts.dsl
Schnittstelle DependencyConstraintFactory
@NonExtensible
@Incubating
@ServiceScope(org.gradle.internal.service.scopes.Scope.Build.class)
public interface DependencyConstraintFactory
Factory class for creating
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.
- Seit:
- 8.7
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreate(CharSequence dependencyConstraintNotation) Create aDependencyConstraintfrom the"group:name:version"notation.Create aDependencyConstraintfrom a series of strings.create(MinimalExternalModuleDependency dependency) Create aDependencyConstraintfrom aMinimalExternalModuleDependency.create(ProjectDependency project) Create aDependencyConstraintfrom aProjectDependency.
-
Methodendetails
-
create
Create aDependencyConstraintfrom the"group:name:version"notation.Note that no classifier or extension is accepted here.
- Parameter:
dependencyConstraintNotation- the dependency constraint notation- Gibt zurück:
- the new dependency constraint
- Seit:
- 8.7
-
create
Create aDependencyConstraintfrom a series of strings.- Parameter:
group- the group (optional)name- the nameversion- the version (optional)- Gibt zurück:
- the new dependency constraint
- Seit:
- 8.7
-
create
Create aDependencyConstraintfrom aMinimalExternalModuleDependency.- Parameter:
dependency- the dependency- Gibt zurück:
- the new dependency constraint
- Seit:
- 8.7
-
create
Create aDependencyConstraintfrom aProjectDependency.- Parameter:
project- the project dependency- Gibt zurück:
- the new dependency constraint
- Seit:
- 8.7
-