Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove commons-lang3
  • Loading branch information
elharo committed Nov 27, 2022
commit cb103dd7ef2390f7e7b00a564fccc7f7acb1d6e2
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* under the License.
*/

import org.apache.commons.lang3.StringUtils;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
Expand Down Expand Up @@ -62,7 +61,7 @@ public void execute()
}
else
{
getLog().info( String.format( Locale.US, "Ancestor POMs: %s", StringUtils.join( ancestors, " <- " ) ) );
getLog().info( String.format( Locale.US, "Ancestor POMs: %s", String.join( " <- " ), ancestors ) );
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.Map;
import java.util.Set;

import org.apache.commons.lang3.StringUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
import org.apache.maven.plugin.AbstractMojo;
Expand All @@ -42,6 +41,7 @@
import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalysis;
import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzer;
import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzerException;
import org.apache.maven.shared.utils.StringUtils;
import org.codehaus.plexus.PlexusConstants;
import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.context.Context;
Expand Down Expand Up @@ -582,7 +582,8 @@ private void writeDependencyXML( Set<Artifact> artifacts )
writer.endElement();
writer.startElement( "version" );
writer.writeText( artifact.getBaseVersion() );
if ( !StringUtils.isBlank( artifact.getClassifier() ) )
String classifier = artifact.getClassifier();
if ( StringUtils.isNotBlank( classifier ) )
{
writer.startElement( "classifier" );
writer.writeText( artifact.getClassifier() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* under the License.
*/

import org.apache.commons.lang3.StringUtils;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
Expand Down Expand Up @@ -49,7 +48,7 @@ public class ResolveDependencySourcesMojo
protected void doExecute()
throws MojoExecutionException
{
if ( StringUtils.isEmpty( this.classifier ) )
if ( this.classifier == null || this.classifier.length() == 0 )
{
this.classifier = SOURCE_CLASSIFIER;
}
Expand Down