Testing commons-lang2 removal from jenkins-core#6234
Testing commons-lang2 removal from jenkins-core#6234alecharp wants to merge 13 commits intojenkinsci:masterfrom
Conversation
MarkEWaite
left a comment
There was a problem hiding this comment.
Can update to a more recent incremental of Jenkins core.
|
I tried using openrewrite but neither the commons-lang3-api recipe or openrewrite cli seemed to do anything for me. Gave up and just did: rg -0 -lF 'org.apache.commons.lang.' . |
while IFS= read -r -d '' file; do
sed -i '' 's/org.apache.commons.lang/org.apache.commons.lang3/' "$file"
doneAdded the dep: <dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>commons-lang3-api</artifactId>
</dependency>Banned commons-lang2: <ban-commons-lang-2.skip>false</ban-commons-lang-2.skip>Would be nice if there was a command that could be run to just do it. |
|
@jonesbusy any idea what I was missing above? I would have thought there should be a simple method of migrating commons-lang to either java APIs or to commons-lang3 |
Any error in particular? There is a recipe that change to commons-lang3 For native Java API it's tracked by jenkins-infra/plugin-modernizer-tool#1542 It's probably just reusing what is provided by OpenRewrite EDIT: Not sure if related by last with infra incident but some URL that we were using to get installation data return 404 I will publish a release that ignore installation stats for now |
Plugin repository: * https://github.com/jenkinsci/job-dsl-plugin Pull request to enable automated releases (CD): * jenkinsci/job-dsl-plugin#2563 The new release will help with the removal of Apache Commons Lang 2 from Jenkins core. That is currently being tested in: * jenkinsci/jenkins#16404 * jenkinsci/bom#6234 Also updates permissions that were missed in previous changes. Completes the removal of @jamietanna and @daspilker as Job DSL maintainers, since they removed themselves with earlier pull requests. @jamietanna removed himself as a Job DSL maintainer in pull request: * jenkins-infra#4404 @daspilker removed himself as a Job DSL maintainer in pull request: * jenkins-infra#4385
This is simply to validate / see what breaks with the removal of the library from Jenkins Core.
See jenkinsci/jenkins#26105.