Class DependencyGroups

java.lang.Object
com.carrotsearch.gradle.buildinfra.dependencychecks.DependencyGroups
All Implemented Interfaces:
Serializable

public class DependencyGroups extends Object implements Serializable
An ordered set of named groups of DependencyInfos.
See Also:
  • Field Details

    • objectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • DependencyGroups

      public DependencyGroups(Map<String,? extends Set<com.carrotsearch.gradle.buildinfra.dependencychecks.DependencyInfo>> groups)
    • DependencyGroups

      public DependencyGroups()
  • Method Details

    • getDependencies

      public Map<String,TreeSet<com.carrotsearch.gradle.buildinfra.dependencychecks.DependencyInfo>> getDependencies()
    • writeTo

      public void writeTo(String comment, File file) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(String comment, Writer writer) throws IOException
      Throws:
      IOException
    • readFrom

      public static DependencyGroups readFrom(File file) throws IOException
      Throws:
      IOException
    • addOrMerge

      public void addOrMerge(String groupName, com.carrotsearch.gradle.buildinfra.dependencychecks.DependencyInfo dependencyInfo)
      Add or merge the provided dependency information.
      Parameters:
      groupName - The group this dependency is added to.
      dependencyInfo - The dependency info to be added or merged.
    • merge

      public void merge(DependencyGroups other)
      Merge with another dependency group.
      Parameters:
      other - the other dependency group to merge with.