5151import org .eclipse .aether .artifact .DefaultArtifact ;
5252
5353import com .google .cloud .tools .opensource .classpath .ClassPathBuilder ;
54- import com .google .cloud .tools .opensource .classpath .ClasspathCheckReport ;
55- import com .google .cloud .tools .opensource .classpath .ClasspathChecker ;
5654import com .google .cloud .tools .opensource .classpath .JarLinkageReport ;
55+ import com .google .cloud .tools .opensource .classpath .LinkageCheckReport ;
56+ import com .google .cloud .tools .opensource .classpath .LinkageChecker ;
5757import com .google .cloud .tools .opensource .dependencies .Artifacts ;
5858import com .google .cloud .tools .opensource .dependencies .DependencyGraph ;
5959import com .google .cloud .tools .opensource .dependencies .DependencyGraphBuilder ;
7676import com .google .common .collect .Sets ;
7777
7878public class DashboardMain {
79- public static final String TEST_NAME_STATIC_LINKAGE_CHECK = "Static Linkage Errors" ;
79+ public static final String TEST_NAME_LINKAGE_CHECK = "Linkage Errors" ;
8080 public static final String TEST_NAME_UPPER_BOUND = "Upper Bounds" ;
8181 public static final String TEST_NAME_GLOBAL_UPPER_BOUND = "Global Upper Bounds" ;
8282 public static final String TEST_NAME_DEPENDENCY_CONVERGENCE = "Dependency Convergence" ;
@@ -107,9 +107,9 @@ public static Path generate()
107107 List <Path > artifactJarsInBom = classpath .subList (0 , managedDependencies .size ());
108108 ImmutableSet <Path > entryPoints = ImmutableSet .copyOf (artifactJarsInBom );
109109
110- ClasspathChecker classpathChecker = ClasspathChecker .create (classpath , entryPoints );
110+ LinkageChecker linkageChecker = LinkageChecker .create (classpath , entryPoints );
111111
112- ClasspathCheckReport linkageReport = classpathChecker .findLinkageErrors ();
112+ LinkageCheckReport linkageReport = linkageChecker .findLinkageErrors ();
113113
114114 Path output = generateHtml (cache , jarToDependencyPaths , linkageReport );
115115
@@ -118,7 +118,7 @@ public static Path generate()
118118
119119 private static Path generateHtml (ArtifactCache cache ,
120120 LinkedListMultimap <Path , DependencyPath > jarToDependencyPaths ,
121- ClasspathCheckReport linkageReport ) throws IOException , TemplateException {
121+ LinkageCheckReport linkageReport ) throws IOException , TemplateException {
122122
123123 Path relativePath = Paths .get ("target" , "dashboard" );
124124 Path output = Files .createDirectories (relativePath );
@@ -163,10 +163,10 @@ static List<ArtifactResults> generateReports(
163163 Configuration configuration ,
164164 Path output ,
165165 ArtifactCache cache ,
166- ClasspathCheckReport classpathCheckReport ,
166+ LinkageCheckReport linkageCheckReport ,
167167 ListMultimap <Path , DependencyPath > jarToDependencyPaths ) {
168168 ImmutableMap <Path , JarLinkageReport > jarToLinkageReport =
169- classpathCheckReport .getJarLinkageReports ().stream ()
169+ linkageCheckReport .getJarLinkageReports ().stream ()
170170 .collect (
171171 toImmutableMap (JarLinkageReport ::getJarPath , jarLinkageReport -> jarLinkageReport ));
172172
@@ -314,7 +314,7 @@ private static ArtifactResults generateArtifactReport(
314314 results .addResult (TEST_NAME_UPPER_BOUND , upperBoundFailures .size ());
315315 results .addResult (TEST_NAME_GLOBAL_UPPER_BOUND , globalUpperBoundFailures .size ());
316316 results .addResult (TEST_NAME_DEPENDENCY_CONVERGENCE , convergenceIssues .size ());
317- results .addResult (TEST_NAME_STATIC_LINKAGE_CHECK , totalLinkageErrorCount );
317+ results .addResult (TEST_NAME_LINKAGE_CHECK , totalLinkageErrorCount );
318318
319319 return results ;
320320 }
@@ -353,7 +353,7 @@ static void generateDashboard(
353353 Path output ,
354354 List <ArtifactResults > table ,
355355 List <DependencyGraph > globalDependencies ,
356- ClasspathCheckReport classpathCheckReport ,
356+ LinkageCheckReport linkageCheckReport ,
357357 ListMultimap <Path , DependencyPath > jarToDependencyPaths )
358358 throws IOException , TemplateException {
359359 File dashboardFile = output .resolve ("dashboard.html" ).toFile ();
@@ -367,7 +367,7 @@ static void generateDashboard(
367367 templateData .put ("table" , table );
368368 templateData .put ("lastUpdated" , LocalDateTime .now ());
369369 templateData .put ("latestArtifacts" , latestArtifacts );
370- templateData .put ("jarLinkageReports" , classpathCheckReport .getJarLinkageReports ());
370+ templateData .put ("jarLinkageReports" , linkageCheckReport .getJarLinkageReports ());
371371 templateData .put ("jarToDependencyPaths" , jarToDependencyPaths );
372372 templateData .put ("dependencyPathRootCauses" , findRootCauses (jarToDependencyPaths ));
373373
0 commit comments