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 TypeMethodDescriptionvoidcollectDependencyPaths(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 processpaths- The map to store the collected pathsscope- The scope or configuration name
-
createNode
Creates a dependency node from the given dependency.- Parameters:
dependency- The resolved dependencyscope- The scope or configuration name- Returns:
- A new dependency node of type T
-