For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

DependencySpecContainer

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.

Since

2.5

Functions

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