Skip to content

Conversation

@dwnusbaum
Copy link
Member

@dwnusbaum dwnusbaum commented Nov 12, 2020

@joseblas was testing a version of this plugin that included #70, and I noticed that he had to add an explicit dependency on slf4j-api to solve an upper bounds conflict between this plugin and core, which should not be necessary. The problem appears to be the way dependency conflicts were fixed in 38c3baa. Since slf4j-api is in the core BOM, any conflicts with it in a plugin must be solved by excluding the dependency from all paths other than core, which in this case means that all of the Dropwizard metrics library dependencies need an exclusion.

At runtime, the version from Jenkins core is what is going to be used anyway, so trying to resolve the slf4j-api conflicts here by requesting a different version in dependencyManagement does not actually fix the conflicts, it just hides them, and it means that any plugin that depends on metrics plugin is likely to run into the same upper bounds issues.

@alecharp alecharp merged commit 4ad7ae1 into jenkinsci:master Jan 8, 2021
@alecharp alecharp added chore internal improvement with no user facing modification dependencies Pull requests that update a dependency file labels Jun 11, 2021
@dwnusbaum dwnusbaum deleted the fix-slf4j-deps branch December 1, 2021 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore internal improvement with no user facing modification dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants