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 12:38:56 UTC
(maven-release) branch split created (now 3831029b)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch split
in repository https://gitbox.apache.org/repos/asf/maven-release.git
at 3831029b Prefer JDK join method
This branch includes the following new commits:
new 3831029b Prefer JDK join method
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-release) 01/01: Prefer JDK join method
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch split
in repository https://gitbox.apache.org/repos/asf/maven-release.git
commit 3831029be20f2c3563c34671bf869a608681512f
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri Nov 28 06:38:45 2025 -0600
Prefer JDK join method
---
.../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 {