Skip to content

Commit

Permalink
Remove StringUtils from UnpackMojo (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored Nov 24, 2024
1 parent ec0b15c commit 5b3be55
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.io.File;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Component;
Expand Down Expand Up @@ -165,10 +164,10 @@ protected List<ArtifactItem> getProcessedArtifactItems(boolean removeVersion) th
List<ArtifactItem> items =
super.getProcessedArtifactItems(new ProcessArtifactItemsRequest(removeVersion, false, false, false));
for (ArtifactItem artifactItem : items) {
if (StringUtils.isEmpty(artifactItem.getIncludes())) {
if (artifactItem.getIncludes().isEmpty()) {
artifactItem.setIncludes(getIncludes());
}
if (StringUtils.isEmpty(artifactItem.getExcludes())) {
if (artifactItem.getExcludes().isEmpty()) {
artifactItem.setExcludes(getExcludes());
}
}
Expand Down

0 comments on commit 5b3be55

Please sign in to comment.