Skip to content

Removes Commons Lang 2 usage - #124

Merged
malice00 merged 3 commits into
jenkinsci:masterfrom
alecharp:chore/commons-lang-2-removal
Feb 10, 2026
Merged

Removes Commons Lang 2 usage#124
malice00 merged 3 commits into
jenkinsci:masterfrom
alecharp:chore/commons-lang-2-removal

Conversation

@alecharp

@alecharp alecharp commented Feb 3, 2026

Copy link
Copy Markdown
Member

Removes usage of Commons Lang 2 from the plugin.
Follow-up of jenkinsci/jenkins#26105 and jenkinsci/bom#6234

Testing done

After fake releasing the parameterized-scheduler with jenkinsci/parameterized-scheduler-plugin#297 content (mvn -Dset.changelist -DskipTests clean install), I could run mvn verify -Djenkins.version=2.549-rc37946.27a_9c5162f85 with success.

I could also validate the BOM when both plugins are updated.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Comment thread pom.xml
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>parameterized-scheduler</artifactId>
<version>374.v531b_4f4d99b_3</version>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it to <dependencyManagement/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plugins was added in BOM 2 years ago. I generally find it a better approach to set the version in the dependencyManagement.

Comment thread pom.xml
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>extended-timer-trigger</artifactId>
<version>48.vf99b_c63a_685b_</version>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it to <dependencyManagement/>

Comment thread pom.xml
@alecharp
alecharp marked this pull request as ready for review February 4, 2026 15:49
@alecharp
alecharp requested a review from a team as a code owner February 4, 2026 15:49
@alecharp

alecharp commented Feb 4, 2026

Copy link
Copy Markdown
Member Author

This should be labelled developer and released so that the commons-lang2 removal project can make some progress.

@alecharp
alecharp requested a review from malice00 February 4, 2026 17:52
Comment thread pom.xml
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they are now on bom right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes but not in the bom version used by the plugin. I didn't want to enforce a core and bom bump for this pull request.

@malice00

Copy link
Copy Markdown
Contributor

Thanks. Labelled as requested and will release in a couple of days.

@malice00
malice00 merged commit d094911 into jenkinsci:master Feb 10, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants