private static Path generate()

in dashboard/src/main/java/com/google/cloud/tools/opensource/dashboard/DashboardMain.java [193:216]


  private static Path generate(Bom bom, DependencyMediationAlgorithm dependencyMediationAlgorithm)
      throws IOException, TemplateException, URISyntaxException,
      InvalidVersionSpecificationException {

    ImmutableList<Artifact> managedDependencies = bom.getManagedDependencies();

    DependencyMediation dependencyMediation =
        dependencyMediationAlgorithm == DependencyMediationAlgorithm.MAVEN
            ? DependencyMediation.MAVEN
            : GradleDependencyMediation.withEnforcedPlatform(bom);

    ClassPathResult classPathResult =
        classPathBuilder.resolve(managedDependencies, false, dependencyMediation);
    ImmutableList<ClassPathEntry> classpath = classPathResult.getClassPath();

    LinkageChecker linkageChecker = LinkageChecker.create(classpath);

    ImmutableSet<LinkageProblem> linkageProblems = linkageChecker.findLinkageProblems();

    ArtifactCache cache = loadArtifactInfo(managedDependencies);
    Path output = generateHtml(bom, cache, classPathResult, linkageProblems);

    return output;
  }