Skip to content

Stops using undeclared commons-lang2 - #5383

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

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

Conversation

@alecharp

@alecharp alecharp commented Jan 14, 2026

Copy link
Copy Markdown
Member

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
Copy Markdown

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

@alecharp

Copy link
Copy Markdown
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
Copy Markdown

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

alecharp commented Jan 14, 2026

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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

olamy commented Jan 15, 2026

Copy link
Copy Markdown
Member

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

olamy commented Jan 15, 2026

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

Thank you for your help on this!

@olamy

olamy commented Jan 18, 2026

Copy link
Copy Markdown
Member

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

@alecharp

Copy link
Copy Markdown
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
@timja

timja commented Aug 3, 2026

Copy link
Copy Markdown
Member

@alecharp / @olamy what is the plan for this?

Are we able to release it? I know its past CloudBees support but without releasing this BlueOcean will break.

@timja

timja commented Aug 8, 2026

Copy link
Copy Markdown
Member

@olamy I think the release might have failed. plugins.jenkins.io still reports the old version: https://plugins.jenkins.io/blueocean/

@olamy

olamy commented Aug 8, 2026

Copy link
Copy Markdown
Member

@olamy I think the release might have failed. plugins.jenkins.io still reports the old version: https://plugins.jenkins.io/blueocean/

yup sorry been busy with other tasks. For some reason the buid failed, I changed laptop and so the build needs a special version of node which I do not remember. I will try to figure out...

@olamy

olamy commented Aug 8, 2026

Copy link
Copy Markdown
Member

should be good now.

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.

4 participants