Object DependencyGraphConverter
-
- All Implemented Interfaces:
public class DependencyGraphConverterAn object that supports the conversion of AnalyzerResults to the dependency graph format.
The main conversion function takes an AnalyzerResult and iterates over all projects contained in it. Each project that still uses the dependency tree representation (i.e. the set of scopes) is converted, and a dependency graph for the associated package manager is created. During this transformation, scope excludes are applied, so that the result contains only dependencies from included scopes.
Via this converter, optimized results can be generated for package managers that do not yet support this format. This approach is, however, not ideal, because during the conversion both the dependency tree and the dependency graph need to be hold in memory. So this is rather a temporary solution until all package managers support the new format natively.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DependencyGraphConverterINSTANCE
-
Method Summary
Modifier and Type Method Description final AnalyzerResultconvert(AnalyzerResult result, Excludes excludes)Convert the given result, so that all dependencies are represented as dependency graphs. -
-
Method Detail
-
convert
final AnalyzerResult convert(AnalyzerResult result, Excludes excludes)
Convert the given result, so that all dependencies are represented as dependency graphs. During conversion, apply the scope excludes defined in excludes. If the result already contains a dependency graph that covers all projects, it is returned as is.
-
-
-
-