# DependencySpecContainer

@Incubating
interface DependencySpecContainer(source)

### Deprecated

The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. `cpp-application`, `cpp-library`, `swift-application`, `swift-library`, `xctest`) instead.

A container for dependency specifications.

## Functions

getDependencies
Link copied to clipboard
abstract fun getDependencies(): Collection<DependencySpec>
Returns an immutable view of dependencies stored in this container.
group
Link copied to clipboard
abstract fun group(name: String): ModuleDependencySpecBuilder
Defines a new module dependency, based on a module group name.
isEmpty
Link copied to clipboard
abstract fun isEmpty(): Boolean
Returns true if this container doesn't hold any dependency.
library
Link copied to clipboard
abstract fun library(name: String): ProjectDependencySpecBuilder
Defines a new dependency, based on a library name.
module
Link copied to clipboard
abstract fun module(moduleIdOrName: String): ModuleDependencySpecBuilder
Defines a new module dependency, based on a module id or a simple name.
project
Link copied to clipboard
abstract fun project(path: String): ProjectDependencySpecBuilder
Defines a new dependency, based on a project path.