Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process jars only in flow-maven-plugin. #4450

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package com.vaadin.flow.plugin.maven;

import java.io.File;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

Expand All @@ -29,7 +30,6 @@
import com.vaadin.flow.plugin.common.ArtifactData;
import com.vaadin.flow.plugin.common.JarContentsManager;
import com.vaadin.flow.plugin.production.ProductionModeCopyStep;
import java.util.Arrays;

/**
* Goal that copies all production mode files into the
Expand Down Expand Up @@ -67,6 +67,7 @@ public class CopyProductionFilesMojo extends AbstractMojo {
@Override
public void execute() {
List<ArtifactData> projectArtifacts = project.getArtifacts().stream()
.filter(artifact -> "jar".equals(artifact.getType()))
.map(artifact -> new ArtifactData(artifact.getFile(),
artifact.getArtifactId(), artifact.getVersion()))
.collect(Collectors.toList());
Expand Down