Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new parent pom version #60

Merged
merged 2 commits into from
Apr 16, 2020
Merged

Conversation

timja
Copy link
Member

@timja timja commented Apr 12, 2020

Partially fixes: jenkinsci/bom#206
Other fix is in workflow-cps-global-lib

cc @basil @jglick

@basil
Copy link
Member

basil commented Apr 13, 2020

Partially fixes

Unclear to me what problem we are trying to solve or how this PR would solve it.

This plugin is currently using plugin-pom 3.57, which depends on jenkins-test-harness 2.61, which depends on jenkins-test-harness-htmlunit 2.36.0-1, which depends on commons-text 1.7, which depends on commons-lang3 3.9. plugin-pom 4.0-beta-6 depends on jenkins-test-harness 2.62, which depends on jenkins-test-harness-htmlunit 2.36.0-1, which depends on commons-text 1.7, which also depends on commons-lang3 3.9. So this change does not affect this plugin's dependency tree with regard to the commons-lang3 dependency.

The error from the failed run was:

Require upper bound dependencies error for org.apache.commons:commons-lang3:3.7 paths to dependency are:
+-io.jenkins.tools.bom:sample:7-rc308.6276ccd81655
  +-org.jenkins-ci.plugins.workflow:workflow-cps-global-lib:2.15
    +-org.apache.commons:commons-lang3:3.7
and
+-io.jenkins.tools.bom:sample:7-rc308.6276ccd81655
  +-org.jenkins-ci.plugins:timestamper:1.11.2
    +-org.apache.commons:commons-lang3:3.9
and
+-io.jenkins.tools.bom:sample:7-rc308.6276ccd81655
  +-org.jenkins-ci.main:jenkins-test-harness:2.57
    +-org.jenkins-ci.main:jenkins-test-harness-htmlunit:2.31-2
      +-org.apache.commons:commons-lang3:3.7
and
+-io.jenkins.tools.bom:sample:7-rc308.6276ccd81655
  +-org.jenkins-ci.main:jenkins-test-harness:2.57
    +-org.jenkins-ci.main:jenkins-test-harness-htmlunit:2.31-2
      +-org.apache.commons:commons-text:1.3
        +-org.apache.commons:commons-lang3:3.7

Apart from the workflow-cps-global-lib dependency on commons-lang3 3.7 that has already been discussed, the other problematic dependency on commons-lang3 3.7 is io.jenkins.tools.bom:sample's dependency on plugin-pom 3.55, which depends on jenkins-test-harness 2.57, which depends on jenkins-test-harness-htmlunit 2.31-2, which depends on commons-lang3 3.7 both directly and through commons-text 1.3. It seems to me that io.jenkins.tools.bom:sample should be upgraded from plugin-pom 3.55 to plugin-pom 3.56 (or later), which depends on jenkins-test-harness 2.60, which depends on jenkins-test-harness-htmlunit 2.36.0-1, which depends on commons-text 1.7, which depends on commons-lang3 3.9.

@timja
Copy link
Member Author

timja commented Apr 13, 2020

right my mistake, it is being updated in jenkinsci/bom#214 then should upgrade cleanly, although may need the workflow-cps-global-lib release as well

feel free to close or merge the PR.

@basil
Copy link
Member

basil commented Apr 13, 2020

I think I'd prefer to wait to upgrade to plugin-pom 4.x until it is out of beta and has gained more adoption, unless there is a demonstrated need to upgrade sooner. Being an early adopter carries some degree of risk, and I don't have the time to take that on at present without a specific driver.

@timja
Copy link
Member Author

timja commented Apr 13, 2020

I think I'd prefer to wait to upgrade to plugin-pom 4.x until it is out of beta and has gained more adoption, unless there is a demonstrated need to upgrade sooner. Being an early adopter carries some degree of risk, and I don't have the time to take that on at present without a specific driver.

it's being released soon,

the main reason is so you don't need to manage jenkins core versions anymore, slf4j version is managed properly so when you bump your core version there's normally no enforcer issues to deal with

@jglick
Copy link
Member

jglick commented Apr 13, 2020

I would say updating to the 4.x parent is low risk—if your plugin still builds, you should be fine.

pom.xml Outdated Show resolved Hide resolved
Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@timja
Copy link
Member Author

timja commented Apr 16, 2020

green now

@basil basil merged commit e22e56a into jenkinsci:master Apr 16, 2020
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