Skip to content

Commit 7b3a625

Browse files
committed
Migrate Commons Lang from 2 to 3
1 parent c427fae commit 7b3a625

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ THE SOFTWARE.
2727
<parent>
2828
<groupId>org.jenkins-ci.plugins</groupId>
2929
<artifactId>plugin</artifactId>
30-
<version>5.2102.v5f5fe09fccf1</version>
30+
<version>6.2116.v7501b_67dc517</version>
3131
<relativePath />
3232
</parent>
3333

@@ -62,6 +62,7 @@ THE SOFTWARE.
6262
<spotless.check.skip>false</spotless.check.skip>
6363
<hpi.strictBundledArtifacts>true</hpi.strictBundledArtifacts>
6464
<ban-junit4-imports.skip>false</ban-junit4-imports.skip>
65+
<ban-commons-lang-2.skip>false</ban-commons-lang-2.skip>
6566
</properties>
6667

6768
<dependencyManagement>
@@ -77,6 +78,10 @@ THE SOFTWARE.
7778
</dependencyManagement>
7879

7980
<dependencies>
81+
<dependency>
82+
<groupId>io.jenkins.plugins</groupId>
83+
<artifactId>commons-lang3-api</artifactId>
84+
</dependency>
8085
<dependency>
8186
<groupId>org.jenkins-ci.plugins</groupId>
8287
<artifactId>matrix-project</artifactId>

src/main/java/hudson/plugins/throttleconcurrents/ThrottleJobProperty.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
import java.util.stream.Collectors;
4040
import jenkins.model.Jenkins;
4141
import net.sf.json.JSONObject;
42-
import org.apache.commons.lang.ArrayUtils;
43-
import org.apache.commons.lang.StringUtils;
42+
import org.apache.commons.lang3.ArrayUtils;
43+
import org.apache.commons.lang3.StringUtils;
4444
import org.jenkinsci.Symbol;
4545
import org.jenkinsci.plugins.workflow.flow.FlowExecution;
4646
import org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner;

src/main/java/hudson/plugins/throttleconcurrents/pipeline/ThrottleStepExecution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.HashSet;
1111
import java.util.List;
1212
import java.util.Set;
13-
import org.apache.commons.lang.StringUtils;
13+
import org.apache.commons.lang3.StringUtils;
1414
import org.jenkinsci.plugins.workflow.graph.FlowNode;
1515
import org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback;
1616
import org.jenkinsci.plugins.workflow.steps.StepContext;

src/test/java/hudson/plugins/throttleconcurrents/ThrottleStepTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.Set;
3131
import java.util.concurrent.CopyOnWriteArrayList;
3232
import java.util.concurrent.Semaphore;
33-
import org.apache.commons.lang.StringUtils;
33+
import org.apache.commons.lang3.StringUtils;
3434
import org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition;
3535
import org.jenkinsci.plugins.workflow.cps.SnippetizerTester;
3636
import org.jenkinsci.plugins.workflow.job.WorkflowJob;

0 commit comments

Comments
 (0)