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

set maven libs according to consumers #144

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

jtnord
Copy link
Member

@jtnord jtnord commented Mar 6, 2023

use a version of maven libs that we expect to be satisfied by consumers.

cf jenkinsci/maven-hpi-plugin#440 (comment)

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@jtnord jtnord requested a review from basil March 6, 2023 13:51
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.

Does not compile.

```
[ERROR] Require upper bound dependencies error for org.slf4j:slf4j-api:1.7.29 [provided] paths to dependency are:
[ERROR] +-org.kohsuke:access-modifier-checker:1.31-SNAPSHOT
[ERROR]   +-org.apache.maven:maven-core:3.8.1 [provided]
[ERROR]     +-org.apache.maven:maven-resolver-provider:3.8.1 [provided]
[ERROR]       +-org.slf4j:slf4j-api:1.7.29 [provided]
[ERROR] and
[ERROR] +-org.kohsuke:access-modifier-checker:1.31-SNAPSHOT
[ERROR]   +-org.apache.maven:maven-core:3.8.1 [provided]
[ERROR]     +-org.apache.maven.resolver:maven-resolver-impl:1.6.2 [provided]
[ERROR]       +-org.slf4j:slf4j-api:1.7.30 [provided]```
```

maven `3.8.1` ships with `slf4j-api` `1.7.29` so the fact its resolver requires a newer slf4j is just daft.

for now (as this is an old version of maven) just ignore slf4j.

Removes org.apache.commons:commons-lang as that is not a collision
@@ -74,7 +78,7 @@
<rules>
<requireUpperBoundDeps>
<excludes combine.children="append">
<exclude>org.apache.commons:commons-lang3</exclude>
<exclude>org.slf4j:slf4j-api</exclude>
Copy link
Member Author

Choose a reason for hiding this comment

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

[ERROR] Require upper bound dependencies error for org.slf4j:slf4j-api:1.7.29 [provided] paths to dependency are:
[ERROR] +-org.kohsuke:access-modifier-checker:1.31-SNAPSHOT
[ERROR]   +-org.apache.maven:maven-core:3.8.1 [provided]
[ERROR]     +-org.apache.maven:maven-resolver-provider:3.8.1 [provided]
[ERROR]       +-org.slf4j:slf4j-api:1.7.29 [provided]
[ERROR] and
[ERROR] +-org.kohsuke:access-modifier-checker:1.31-SNAPSHOT
[ERROR]   +-org.apache.maven:maven-core:3.8.1 [provided]
[ERROR]     +-org.apache.maven.resolver:maven-resolver-impl:1.6.2 [provided]
[ERROR]       +-org.slf4j:slf4j-api:1.7.30 [provided]```

maven 3.8.1 ships with slf4j-api 1.7.29 so the fact its resolver requires a newer slf4j is just daft.

for now (as this is an old version of maven) just ignore slf4j.

Removes org.apache.commons:commons-lang as that is not a collision

@jtnord jtnord requested a review from basil March 6, 2023 17:50
@jtnord jtnord merged commit 6a1914c into jenkinsci:master Mar 7, 2023
@jtnord jtnord deleted the fix-maven-libs branch March 7, 2023 17:57
@jtnord jtnord added the internal label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants