Skip to content

Commit

Permalink
Merge pull request #143 from tneer/JENKINS-50793
Browse files Browse the repository at this point in the history
[JENKINS-50793] Remove implicit dependency on Apache commons lang 3.
  • Loading branch information
Cyrille Le Clerc committed Apr 13, 2018
2 parents ea087d5 + 863cf16 commit 5c8d017
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -3,7 +3,6 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang3.StringUtils;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.eclipse.aether.RepositoryEvent;
import org.jenkinsci.plugins.pipeline.maven.eventspy.reporter.MavenEventReporter;
Expand Down Expand Up @@ -53,7 +52,8 @@ protected Xpp3Dom newElement(String name, @Nullable org.eclipse.aether.repositor

element.setAttribute("id", repository.getId());
element.setAttribute("layout", repository.getContentType());
element.setAttribute("url", StringUtils.substringBetween(repository.toString(), "(", ","));
String repoString = repository.toString();
element.setAttribute("url", repoString.substring(repoString.indexOf("(") + 1, repoString.indexOf(",")));

return element;
}
Expand Down

0 comments on commit 5c8d017

Please sign in to comment.