Package io.spring.initializr.metadata
Class DependencyGroup
java.lang.Object
io.spring.initializr.metadata.DependencyGroup
A group of
Dependency
instances identified by a name.- Author:
- Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DependencyGroup
Create a newDependencyGroup
instance with the given name.getBom()
Return the default bom to associate to all dependencies of this group unless specified otherwise.Return the default compatibility range to apply to all dependencies of this group unless specified otherwise.Return thedependencies
of this group.getName()
Return the name of this group.Return the default repository to associate to all dependencies of this group unless specified otherwise.void
void
setCompatibilityRange
(String compatibilityRange) void
void
setRepository
(String repository)
-
Constructor Details
-
DependencyGroup
public DependencyGroup()
-
-
Method Details
-
getName
Return the name of this group.- Returns:
- the name of the group
-
setName
-
getCompatibilityRange
Return the default compatibility range to apply to all dependencies of this group unless specified otherwise.- Returns:
- the compatibility range
-
setCompatibilityRange
-
getBom
Return the default bom to associate to all dependencies of this group unless specified otherwise.- Returns:
- the BOM
-
setBom
-
getRepository
Return the default repository to associate to all dependencies of this group unless specified otherwise.- Returns:
- the repository
-
setRepository
-
getContent
Return thedependencies
of this group.- Returns:
- the content
-
create
Create a newDependencyGroup
instance with the given name.- Parameters:
name
- the name of the group- Returns:
- a new
DependencyGroup
instance
-