Explicitly declare dependencies#423
Merged
damianszczepanik merged 2 commits intojenkinsci:masterfrom Jan 10, 2026
Merged
Conversation
There is not enough benefit from this one call to justify a dependency on the commons collection library.
Reduce the risk that new dependencies will be injected accidentally from a dependency update. Rely on commons-beanutils that is provided by Jenkins core rather than including a copy of commons-beanutils in the hpi file of the plugin. The developer documentation provides more details at https://www.jenkins.io/doc/developer/plugin-development/dependencies-and-class-loading/#build-time-validation-of-bundled-artifacts Originally added to Maven hpi plugin in pull request: * jenkinsci/maven-hpi-plugin#771 Testing done * Confirmed that automated tests pass
damianszczepanik
approved these changes
Jan 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explicitly declare dependencies
Reduce the risk that new dependencies will be injected accidentally from a dependency update.
Rely on commons-beanutils that is provided by Jenkins core rather than including a copy of commons-beanutils in the hpi file of the plugin.
The developer documentation provides more details.
Originally added to Maven hpi plugin in pull request:
Replace the lone use of commons collection with standard Java so that commons-collection is not included in the hpi file.
There is not enough benefit from this one call to justify a dependency on the commons collection library.
Testing done
Submitter checklist