-
Notifications
You must be signed in to change notification settings - Fork 89
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
[JENKINS-58771] Avoid more cases of bundling libs incorrectly #172
Conversation
Sometimes some dependencies gets pulled through test or provided scope trails, because in fact they are being pulled in compile scope through a plugin with a longer trail.
also seeing cases of
I only see
slf4j is being promoted via an
|
This PR fixes the above issues for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like some more context before I feel comfortable approving.
src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java
Outdated
Show resolved
Hide resolved
eddsa.. promoted to compile due to dependency on maven plugin which depends on ssh-credentials which depends on... whilst correct at the maven level, maven-plugin is a HPI and should break the cycle. |
I found usage of |
Indeed, not using a specific type ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clearer, thank you.
src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java
Outdated
Show resolved
Hide resolved
Co-Authored-By: Jesse Glick <jglick@cloudbees.com>
|
Re-running build |
I seen a few more cases of odd bundling when it comes to plugin pom v4 and Jenkins Core bom. seems Guava, commons-io, commons-lang are chosen to be bundled in transitive dependencies even though Jenkins core provide these versions. This PR needed to use some |
@jetersen I looked at the PR you referenced and hpi plugin is behaving as expected. If you depend on a jar that pulls transitive dependencies that may be provided through other means in the Jenkins ecosystem, you have to exclude these transitive dependencies, unless you have a very good reason to include them (like pulling a more recent version). |
I added jackson-api plugin expecting those dependencies would not be transitively bundled from both buildinfo-api and buildinfo-client |
Expands #140
Sometimes some dependencies gets pulled through test or provided scope
trails, because in fact they are being pulled in compile scope through a plugin with a longer trail.
Inspired by jenkinsci/kubernetes-plugin#729