This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-release-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 139ecea  Update from deprecated code
139ecea is described below

commit 139eceae1b59b0563348ac589da1ac232a724f3e
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Nov 30 08:22:38 2025 -0500

    Update from deprecated code
---
 .../commons/release/plugin/mojos/CommonsDistributionStagingMojo.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
index 4d367c4..88a6bb8 100644
--- 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
+++ 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
@@ -31,6 +31,7 @@ import java.util.List;
 import org.apache.commons.io.FileUtils;
 import org.apache.commons.io.file.PathUtils;
 import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.Strings;
 import org.apache.commons.release.plugin.SharedFunctions;
 import org.apache.commons.release.plugin.velocity.HeaderHtmlVelocityDelegate;
 import org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegate;
@@ -307,7 +308,7 @@ public class CommonsDistributionStagingMojo extends 
AbstractMojo {
                 copy = new File(scmBinariesRoot,  file.getName());
                 SharedFunctions.copyFile(getLog(), file, copy);
                 filesForMavenScmFileSet.add(file);
-            } else if (StringUtils.containsAny(file.getName(), "scm", 
"sha256.properties", "sha512.properties")) {
+            } else if (Strings.CS.containsAny(file.getName(), "scm", 
"sha256.properties", "sha512.properties")) {
                 getLog().debug("Not copying scm directory over to the scm 
directory because it is the scm directory.");
                 //do nothing because we are copying into scm
             } else {

Reply via email to