in dashboard/src/main/java/com/google/cloud/tools/opensource/dashboard/DashboardMain.java [329:351]
private static ArtifactCache loadArtifactInfo(List<Artifact> artifacts) {
Map<Artifact, ArtifactInfo> infoMap = new LinkedHashMap<>();
List<DependencyGraph> globalDependencies = new ArrayList<>();
for (Artifact artifact : artifacts) {
DependencyGraph completeDependencies =
dependencyGraphBuilder.buildVerboseDependencyGraph(artifact);
globalDependencies.add(completeDependencies);
// picks versions according to Maven rules
DependencyGraph transitiveDependencies =
dependencyGraphBuilder.buildMavenDependencyGraph(new Dependency(artifact, "compile"));
ArtifactInfo info = new ArtifactInfo(completeDependencies, transitiveDependencies);
infoMap.put(artifact, info);
}
ArtifactCache cache = new ArtifactCache();
cache.setInfoMap(infoMap);
cache.setGlobalDependencies(globalDependencies);
return cache;
}