Package org.gradle.platform.base
Schnittstelle DependencySpecContainer
A container for dependency specifications.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns an immutable view of dependencies stored in this container.Defines a new module dependency, based on a module group name.booleanisEmpty()Returns true if this container doesn't hold any dependency.Defines a new dependency, based on a library name.Defines a new module dependency, based on a module id or a simple name.Defines a new dependency, based on a project path.
-
Methodendetails
-
project
Defines a new dependency, based on a project path. The returned dependency can be mutated.- Parameter:
path- the project path- Gibt zurück:
- a mutable dependency, added to this container
-
library
Defines a new dependency, based on a library name. The returned dependency can be mutated.- Parameter:
name- of the library- Gibt zurück:
- a mutable dependency, added to this container
-
module
Defines a new module dependency, based on a module id or a simple name. The returned dependency can be mutated.- Parameter:
moduleIdOrName- of the module- Gibt zurück:
- a mutable module dependency, added to this container
-
group
Defines a new module dependency, based on a module group name. The returned dependency can be mutated.- Parameter:
name- of the module group- Gibt zurück:
- a mutable module dependency, added to this container
-
getDependencies
Collection<DependencySpec> getDependencies()Returns an immutable view of dependencies stored in this container.- Gibt zurück:
- an immutable view of dependencies. Each dependency in the collection is itself immutable.
-
isEmpty
boolean isEmpty()Returns true if this container doesn't hold any dependency.- Gibt zurück:
- true if this container doesn't contain any dependency specification.
-