List getCompileClasspathElements()

in src/main/java/org/apache/maven/plugins/jlink/JLinkMojo.java [473:485]


    List<File> getCompileClasspathElements(MavenProject project) {
        List<File> list = new ArrayList<>(project.getArtifacts().size() + 1);

        for (Artifact artifact : project.getArtifacts()) {
            boolean shouldSkip = shouldSkip(artifact);
            getLog().debug("Adding artifact: " + artifact.getGroupId() + ":" + artifact.getArtifactId() + ":"
                    + artifact.getVersion() + (shouldSkip ? " (skipping)" : ""));
            if (!shouldSkip) {
                list.add(artifact.getFile());
            }
        }
        return list;
    }