question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropwizard BOM provides dependency management for modules outside the Dropwizard project

See original GitHub issue

The BOM is setting dependency management for modules that aren’t part of Dropwizard. This is not ideal, as it can cause conflicts when other projects import the BOM.

A simple example would be if I had a project using the Dropwizard BOM, and also depending on something that depends on tomcat-jdbc:9.0.8 and tomcat-dbcp:9.0.8. In this case I would get tomcat-jdbc:9.0.22 from Dropwizard, and tomcat-dbcp:9.0.8, which might not work together. This will happen even if I don’t use a Dropwizard module that requires tomcat-jdbc.

See a similar discussion here https://github.com/dropwizard/metrics/issues/1336

Ideally the BOM would only set the versions of io.dropwizard modules, and let the consuming project handle resolving any conflicts between transitive dependencies. This is also how several other modular projects do their BOMs (e.g. JUnit, Jackson, Camel)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
joschicommented, Sep 16, 2019

The dependencies have been reorganized in #2897.

@black-snow Could you please create a new issue for this and add a minimal example to reproduce the problem?

0reactions
black-snowcommented, Sep 16, 2019

Will most likely be fixed with 2.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Notes for Dropwizard 2.0.x
It can be used as parent POM, for which you can override individual dependency versions by setting certain Maven properties, see dropwizard-dependencies/pom.xml ...
Read more >
BOM - Dropwizard-guicey
Maven BOM containing guicey and guicey ext modules versions. Also includes dropwizard and guice boms. Tip. BOM's are useful for versions management.
Read more >
spring-gradle-plugins/dependency-management-plugin - Gitter
local/repository/com/mycompany/myproject/1.0.0/bom-1.0.0.pom. I added a dependency ... compile'io.dropwizard.metrics:metrics-jvm' + dependencyManagement.
Read more >
why dropwizard-bom? - Google Groups
... as to why dropwizard moved to using dropwizard-bom + <dependencyManagement> ... having a bom module is to be able to get all...
Read more >
Migrating Spring Applications from DropWizard Metrics to ...
Spring-io-platform has been deprecated and to upgrade to Spring Boot, one needs to migrate the Spring Applications to use Micrometer instead of Dropwizard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found