Skip to content

Migrate Commons Lang from 2 to 3#691

Closed
jonesbusy wants to merge 1 commit intojenkinsci:masterfrom
jonesbusy-automation:plugin-modernizer/migratecommonslang2tolang3andcommontext
Closed

Migrate Commons Lang from 2 to 3#691
jonesbusy wants to merge 1 commit intojenkinsci:masterfrom
jonesbusy-automation:plugin-modernizer/migratecommonslang2tolang3andcommontext

Conversation

@jonesbusy
Copy link
Copy Markdown
Contributor

Hello active-directory developers! 👋

This is an automated pull request created by the Jenkins Plugin Modernizer tool. The tool has applied the following recipes to modernize the plugin:

Migrate Commons Lang from 2 to 3 and StringEscapeUtils to Commons Text

io.jenkins.tools.pluginmodernizer.MigrateCommonsLang2ToLang3AndCommonText

Migrate Commons Lang from 2 to 3 and StringEscapeUtils to Commons Text.

This pull request upgrades Apache Commons Lang 2 to Apache Commons Lang 3. Additionally, if the plugin uses StringEscapeUtils from Apache Commons Lang, it will be migrated to use Apache Commons Text instead.
The Apache Commons community recommends using Apache Commons Text for string escaping operations, as it offers a more focused and feature-rich API for text processing.

What's Changed?

  • Migrated from deprecated/EOL Apache Commons Lang 2 to Commons Lang 3.
  • If applicable: Transitioned from deprecated/EOL StringEscapeUtils in Apache Commons Lang to Commons Text.

@mawinter69
Copy link
Copy Markdown

Wouldn't it be better to use plain java here?

@jonesbusy
Copy link
Copy Markdown
Contributor Author

Perhaps, I didn't look at the usage. The OpenRewrite recipe naïvely migrate to commons lang 3

I will take a look at unmerged PR at some point (unless a maintainer perform the changes before)

@alecharp alecharp mentioned this pull request Jan 19, 2026
6 tasks
@alecharp
Copy link
Copy Markdown
Member

Wouldn't it be better to use plain java here?

Proposed in #693.

@jonesbusy jonesbusy closed this Jan 19, 2026
@jonesbusy jonesbusy deleted the plugin-modernizer/migratecommonslang2tolang3andcommontext branch January 19, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants