Class DependencyGroup

java.lang.Object
io.spring.initializr.metadata.DependencyGroup

public class DependencyGroup extends Object
A group of Dependency instances identified by a name.
Author:
Stephane Nicoll
  • Constructor Details

    • DependencyGroup

      public DependencyGroup()
  • Method Details

    • getName

      public String getName()
      Return the name of this group.
      Returns:
      the name of the group
    • setName

      public void setName(String name)
    • getCompatibilityRange

      public String getCompatibilityRange()
      Return the default compatibility range to apply to all dependencies of this group unless specified otherwise.
      Returns:
      the compatibility range
    • setCompatibilityRange

      public void setCompatibilityRange(String compatibilityRange)
    • getBom

      public String getBom()
      Return the default bom to associate to all dependencies of this group unless specified otherwise.
      Returns:
      the BOM
    • setBom

      public void setBom(String bom)
    • getRepository

      public String getRepository()
      Return the default repository to associate to all dependencies of this group unless specified otherwise.
      Returns:
      the repository
    • setRepository

      public void setRepository(String repository)
    • getContent

      public List<Dependency> getContent()
      Return the dependencies of this group.
      Returns:
      the content
    • create

      public static DependencyGroup create(String name)
      Create a new DependencyGroup instance with the given name.
      Parameters:
      name - the name of the group
      Returns:
      a new DependencyGroup instance