You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/11/28 19:14:56 UTC
(maven-release) branch master updated: Prefer JDK join method (#1434)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-release.git
The following commit(s) were added to refs/heads/master by this push:
new 422f8959 Prefer JDK join method (#1434)
422f8959 is described below
commit 422f8959b83304a3dd02ba86e17d92a85840a09c
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Fri Nov 28 13:14:51 2025 -0600
Prefer JDK join method (#1434)
---
.../main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java b/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
index e78eb829..ccc303d1 100644
--- a/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
+++ b/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
@@ -33,7 +33,6 @@ import org.apache.maven.shared.release.ReleaseFailureException;
import org.apache.maven.shared.release.ReleaseManager;
import org.apache.maven.shared.release.ReleasePerformRequest;
import org.apache.maven.shared.release.config.ReleaseDescriptorBuilder;
-import org.codehaus.plexus.util.StringUtils;
/**
* Perform a release from SCM, either from a specified tag, or the tag representing the previous release in
@@ -122,7 +121,7 @@ public class PerformReleaseMojo extends AbstractScmReadReleaseMojo {
// goals may be split into multiple lines in configuration.
// Let's build a single line command
if (goals != null) {
- goals = StringUtils.join(goals.split("\\s+"), " ");
+ goals = String.join(" ", goals.split("\\s+"));
}
try {