From c40e66d445f9d088f6ee3dde66a9a5c52d31764d Mon Sep 17 00:00:00 2001 From: Valentin Delaye Date: Tue, 20 Jan 2026 14:30:59 +0100 Subject: [PATCH] Replace Apache Commons Lang 2 with Java APIs due to removal from core and security issue --- pom.xml | 9 +++++---- .../plugins/postbuildscript/service/Command.java | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 5802812..4683d24 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.jenkins-ci.plugins plugin - 6.2108.v08c2b_01b_cf4d + 6.2116.v7501b_67dc517 postbuildscript @@ -103,16 +103,17 @@ 3.4.1 999999-SNAPSHOT jenkinsci/postbuildscript-plugin - 2.479.1 + 2.479.3 3.0.0 + false io.jenkins.tools.bom - bom-2.462.x - 4228.v0a_71308d905b_ + bom-2.479.x + 5054.v620b_5d2b_d5e6 pom import diff --git a/src/main/java/org/jenkinsci/plugins/postbuildscript/service/Command.java b/src/main/java/org/jenkinsci/plugins/postbuildscript/service/Command.java index feec92c..64f5278 100644 --- a/src/main/java/org/jenkinsci/plugins/postbuildscript/service/Command.java +++ b/src/main/java/org/jenkinsci/plugins/postbuildscript/service/Command.java @@ -6,7 +6,7 @@ import java.util.Collections; import java.util.Deque; import java.util.List; -import org.apache.commons.lang.StringUtils; + public class Command { @@ -21,7 +21,7 @@ public Command(String command) { } private static Deque parseLine(String command) { - if (StringUtils.isBlank(command)) { + if (command == null || command.isBlank()) { return new ArrayDeque<>(0); } command = command.trim();