gradle
8.3

# add

abstract fun add(dependencyNotation: String)

Add a dependency or a dependency constraint using the string notation: `group:name:version`.

#### Parameters

dependencyNotation

the dependency

abstract fun add(dependencyNotation: Map<String, String>)

Add a dependency or a dependency constraint using the map notation: `group: group, name: name, version: version`.

#### Parameters

dependencyNotation

the dependency

abstract fun add(dependencyNotation: String, configureAction: Action<out Any>)

Add a dependency or a dependency constraint using the string notation: `group:name:version`.

#### Parameters

dependencyNotation

the dependency

configureAction

action to configure details of the dependency - see DependencyMetadata

abstract fun add(dependencyNotation: Map<String, String>, configureAction: Action<out Any>)

Add a dependency or a dependency constraint using the map notation: `group: group, name: name, version: version`.

#### Parameters

dependencyNotation

the dependency

configureAction

action to configure details of the dependency - see DependencyMetadata