diff --git a/pom.xml b/pom.xml index dae7b097..1b14315a 100644 --- a/pom.xml +++ b/pom.xml @@ -209,11 +209,6 @@ jdependency 2.7.0 - - org.apache.commons - commons-lang3 - 3.8.1 - org.apache.commons commons-collections4 diff --git a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java index 6b032ca4..e8505c5c 100644 --- a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java +++ b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java @@ -55,7 +55,6 @@ import org.apache.commons.collections4.MultiValuedMap; import org.apache.commons.collections4.multimap.HashSetValuedHashMap; -import org.apache.commons.lang3.StringUtils; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.shade.filter.Filter; import org.apache.maven.plugins.shade.relocation.Relocator; @@ -442,8 +441,8 @@ private void logSummaryOfDuplicates( MultiValuedMap, String> ov all.addAll( resources ); logger.warn( - StringUtils.join( jarzS, ", " ) + " define " + all.size() - + " overlapping " + StringUtils.join( overlaps, " and " ) + ": " ); + String.join( ", ", jarzS ) + " define " + all.size() + + " overlapping " + String.join( " and ", overlaps ) + ": " ); //CHECKSTYLE_ON: LineLength Collections.sort( all );