Interface DependencyGraphBuilder<T extends DependencyGraph.DependencyNode>

Type Parameters:
T - The type of dependency node this builder creates
All Known Implementing Classes:
AbstractDependencyGraphBuilder, GradleDependencyGraphBuilder, MavenDependencyGraphBuilder

public interface DependencyGraphBuilder<T extends DependencyGraph.DependencyNode>
Interface for building dependency graphs with type-safe node creation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collectDependencyPaths(List<org.openrewrite.maven.tree.ResolvedDependency> dependencies, Map<org.openrewrite.maven.tree.ResolvedGroupArtifactVersion,List<DependencyGraph.DependencyPath>> paths, String scope)
    Collects dependency paths for the given dependencies.
    createNode(org.openrewrite.maven.tree.ResolvedDependency dependency, String scope)
    Creates a dependency node from the given dependency.
  • Method Details

    • collectDependencyPaths

      void collectDependencyPaths(List<org.openrewrite.maven.tree.ResolvedDependency> dependencies, Map<org.openrewrite.maven.tree.ResolvedGroupArtifactVersion,List<DependencyGraph.DependencyPath>> paths, String scope)
      Collects dependency paths for the given dependencies.
      Parameters:
      dependencies - The list of resolved dependencies to process
      paths - The map to store the collected paths
      scope - The scope or configuration name
    • createNode

      T createNode(org.openrewrite.maven.tree.ResolvedDependency dependency, String scope)
      Creates a dependency node from the given dependency.
      Parameters:
      dependency - The resolved dependency
      scope - The scope or configuration name
      Returns:
      A new dependency node of type T