Skip to content

Upgrade from Apache Commons Lang 2.6 to Commons Lang3 3.18.0#6511

Merged
pditommaso merged 2 commits intomasterfrom
upgrade-commons-lang3
Oct 28, 2025
Merged

Upgrade from Apache Commons Lang 2.6 to Commons Lang3 3.18.0#6511
pditommaso merged 2 commits intomasterfrom
upgrade-commons-lang3

Conversation

@pditommaso
Copy link
Member

Summary

This PR migrates the codebase from the legacy Apache Commons Lang 2.6 library to Commons Lang3 3.18.0.

Changes

  • Dependencies: Updated build.gradle files in nextflow, nf-commons, and nf-wave modules to use commons-lang3:3.18.0
  • Import statements: Updated all import statements from org.apache.commons.lang to org.apache.commons.lang3 across 10 files
  • API changes:
    • Replaced StringEscapeUtils.escapeJavaScript() with escapeEcmaScript() in TimelineObserver (method renamed in lang3)
    • Replaced StrBuilder with standard Java StringBuilder in ConfigParser (StrBuilder moved to commons-text library)

Files Modified

  • modules/nextflow/build.gradle
  • modules/nf-commons/build.gradle
  • plugins/nf-wave/build.gradle
  • 12 source files with import statement updates

Testing

  • All modules compile successfully: make compile passes
  • No functionality changes, only package updates

Motivation

Upgrading from the legacy commons-lang 2.x to the actively maintained commons-lang3 3.x brings modern APIs, bug fixes, and continued support.

This commit migrates the codebase from the legacy commons-lang library
to commons-lang3. Key changes include:

- Updated dependency in build.gradle files from commons-lang:2.6 to
  commons-lang3:3.18.0
- Updated all import statements from org.apache.commons.lang to
  org.apache.commons.lang3
- Replaced StringEscapeUtils.escapeJavaScript() with escapeEcmaScript()
  in TimelineObserver (method renamed in lang3)
- Replaced StrBuilder with standard Java StringBuilder in ConfigParser
  (StrBuilder moved to commons-text library)

All modules compile successfully with the new dependency.

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@netlify
Copy link

netlify bot commented Oct 25, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 1809abf
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6900e44eef46a20008c1c0b9

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso pditommaso merged commit 9b2ccb8 into master Oct 28, 2025
8 checks passed
@pditommaso pditommaso deleted the upgrade-commons-lang3 branch October 28, 2025 15:42
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.

2 participants