This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch unpack in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
commit 2e6cdb7c143c66a4c82269c0ae15827153d322c2 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Wed Nov 20 17:24:24 2024 -0500 Remove StringUtils from UnpackMojo --- .../maven/plugins/dependency/fromConfiguration/UnpackMojo.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java b/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java index 979ed507..ac3369b4 100644 --- a/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java +++ b/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java @@ -21,7 +21,6 @@ package org.apache.maven.plugins.dependency.fromConfiguration; 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; @@ -165,10 +164,10 @@ public class UnpackMojo extends AbstractFromConfigurationMojo { 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()); } }