Skip to content

Stops using undeclared commons-lang2#5383

Merged
olamy merged 8 commits intojenkinsci:masterfrom
alecharp:chore/remove-commons-lang-2-usage
Jan 19, 2026
Merged

Stops using undeclared commons-lang2#5383
olamy merged 8 commits intojenkinsci:masterfrom
alecharp:chore/remove-commons-lang-2-usage

Conversation

@alecharp
Copy link
Member

@alecharp alecharp commented Jan 14, 2026

Description

Commons Lang 2 should be removed from Jenkins Core (jenkinsci/jenkins#26105) but the plugin is using StringUtils from it.

Is required for jenkinsci/bom#6234

Testing done

I could not build the plugin locally, I rely on CI.

Submitter checklist

  • Link to JIRA ticket in description, if appropriate.
  • Change is code complete and matches issue description
  • Appropriate unit or acceptance tests or explanation to why this change has no tests
  • Reviewer's manual test instructions provided in PR description. See Reviewer's first task below.

Reviewer checklist

  • Run the changes and verified the change matches the issue description
  • Reviewed the code
  • Verified that the appropriate tests have been written or valid explanation given

@alecharp alecharp requested a review from a team as a code owner January 14, 2026 11:02
alecharp added a commit to alecharp/bom that referenced this pull request Jan 14, 2026
@mawinter69
Copy link

There are many more files that still use commons-lang-2

@alecharp
Copy link
Member Author

I only touch the class in error in the megawar of the bom build. I couldn't build locally the plugin. With the new plugin-pom and the property we should get a complete list.

Library (through the api plugin) is already pulled in common module
@mawinter69
Copy link

Have you checked that all modules using lang3 have a dependency to the common-lang-3 api plugin? At least transitively over one of the other plugins in this repo?

@alecharp
Copy link
Member Author

alecharp commented Jan 14, 2026

Have you checked that all modules using lang3 have a dependency to the common-lang-3 api plugin? At least transitively over one of the other plugins in this repo?

commons-lang3-api is a dependency of commons module. Most of the modules in the repository have a dependency to the module.

  • design language doesn't use any class
  • blueocean-core-js doesn't not using any class
  • blueocean-github-pipeline is using github-api which has a dependency to commons-lang3
  • blueocean-bitbucket-pipeline is using cloudbees-bitbucket-branch-source which has a dependency to commons-lang3
  • blueocean-jira is using jira (plugin) which has a dependency to commons-lang3

all other modules are using blueocean-commons directly or transitively.

@alecharp
Copy link
Member Author

The maven-enforcer-plugin declaration in blueocean-rest is not compatible with the one in plugin-pom.

@olamy sorry to bother you on this but if you have 5min to point me in the correct direction that would be great.

@olamy
Copy link
Member

olamy commented Jan 15, 2026

The maven-enforcer-plugin declaration in blueocean-rest is not compatible with the one in plugin-pom.

@olamy sorry to bother you on this but if you have 5min to point me in the correct direction that would be great.

ok I will have a look. FYI commons-lang2 is declared in root pom as provided ;)

Signed-off-by: Olivier Lamy <olamy@apache.org>
@olamy
Copy link
Member

olamy commented Jan 15, 2026

should be a bit better (I hope) with f0cb761
interesting as parent pom has many of those provided dependencies which could be removed (maybe another PR tho)

@alecharp
Copy link
Member Author

Thank you for your help on this!

@olamy
Copy link
Member

olamy commented Jan 18, 2026

@alecharp all good to merge and release? Or you do you need something else?

@alecharp
Copy link
Member Author

The build failure on BOM for blueocean doesn't seem to be related to blueocean itself.
IMO it can be merged and released.

@olamy olamy merged commit 1db8ca8 into jenkinsci:master Jan 19, 2026
16 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