Commit c8b992dc authored by Daniel Bluhm's avatar Daniel Bluhm
Browse files

Add comments to functional operations

As requested in code review
Signed-off-by: Daniel Bluhm's avatarDaniel Bluhm <>
parent be82acec
......@@ -223,14 +223,20 @@ public class DependencyScraper extends AbstractMojo {
public void execute() throws MojoExecutionException, MojoFailureException {
if (jarFiles == null) {
this.jarFiles = project.getArtifacts().stream()
// Only process jar dependencies
.filter(artifact -> "jar".equals(artifact.getType()))
// Map to File
for (File jar : jarFiles) {
try (JarFile jarFile = new JarFile(jar, false)) {
Set<ZipEntry> toCopy =
// Filter out directories
.filter(file -> !file.isDirectory())
// Filter out any files not in the source directory
// Filter out files not matching any include wildcards
for (ZipEntry file : toCopy) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment