revapi-maven-plugin/src/main/java/org/revapi/maven/AnalyzerBuilder.java
/**
     * @return true if artifacts are initialized, false if not and the analysis should not proceed
     */
@return true if artifacts are initialized, false if not and the analysis should not proceed
@return true if artifacts are initialized false if not and the analysis should not proceed
private boolean initializeComparisonArtifacts() {
        if (oldArtifacts == null) {
            return initializeComparisonGavs();
        } else {
            String coords = Analyzer.getProjectArtifactCoordinates(project, null);
            boolean projectInOlds = Stream.of(oldArtifacts).anyMatch(a -> ArtifactIdUtils.toId(a).equals(coords));
            boolean projectInNews = Stream.of(newArtifacts).anyMatch(a -> ArtifactIdUtils.toId(a).equals(coords));
            if ((projectInOlds || projectInNews) && !project.getArtifact().getArtifactHandler().isAddedToClasspath()) {
                return false;
            }
            return true;
        }
    }
private boolean initializeComparisonArtifacts ( ) { if ( oldArtifacts == null ) { return initializeComparisonGavs ( ) ; } else { String coords = Analyzer . getProjectArtifactCoordinates ( project , null ) ; boolean projectInOlds = Stream . of ( oldArtifacts ) . anyMatch ( a -> ArtifactIdUtils . toId ( a ) . equals ( coords ) ) ; boolean projectInNews = Stream . of ( newArtifacts ) . anyMatch ( a -> ArtifactIdUtils . toId ( a ) . equals ( coords ) ) ; if ( ( projectInOlds || projectInNews ) && ! project . getArtifact ( ) . getArtifactHandler ( ) . isAddedToClasspath ( ) ) { return false ; } return true ; } }
@return true if artifacts are initialized, false if not and the analysis should not proceed
@return true if artifacts are initialized false if not and the analysis should not proceed