# create

abstract fun create(dependencyConstraintNotation: CharSequence): DependencyConstraint(source)

Create a DependencyConstraint from the `"group:name:version"` notation.

Note that no classifier or extension is accepted here.

#### Return

the new dependency constraint

#### Since

8.7

#### Parameters

dependencyConstraintNotation

the dependency constraint notation

abstract fun create(@Nullable group: @Nullable String, name: String, @Nullable version: @Nullable String): DependencyConstraint(source)

Create a DependencyConstraint from a series of strings.

#### Return

the new dependency constraint

#### Since

8.7

#### Parameters

group

the group (optional)

name

the name

version

the version (optional)

abstract fun create(dependency: MinimalExternalModuleDependency): DependencyConstraint(source)

Create a DependencyConstraint from a MinimalExternalModuleDependency.

#### Return

the new dependency constraint

#### Since

8.7

#### Parameters

dependency

the dependency

abstract fun create(project: ProjectDependency): DependencyConstraint(source)

Create a DependencyConstraint from a ProjectDependency.

#### Return

the new dependency constraint

#### Since

8.7

#### Parameters

project

the project dependency