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 javax.inject.Inject.

Note: This interface is not intended for implementation by build script or plugin authors.

Since

8.7

Functions

Link copied to clipboard
abstract fun create(dependencyConstraintNotation: CharSequence): DependencyConstraint
Create a DependencyConstraint from the "group:name:version" notation.
abstract fun create(@Nullable group: String, name: String, @Nullable version: String): DependencyConstraint
Create a DependencyConstraint from a series of strings.