dropwizard-guicier icon indicating copy to clipboard operation
dropwizard-guicier copied to clipboard

Upgrade Dropwizard to 2.x

Open OneCricketeer opened this issue 5 years ago • 8 comments

Dropwizard 1.3.x has had many upgrades.

Dropwizard 2.0 is also out now.

OneCricketeer avatar Feb 15 '20 00:02 OneCricketeer

Thanks for bringing this up. Currently dropwizard-guicier uses jersey2-guice in order to make HK2 and Guice work together. However, this project is abandoned and the repo is archived. Luckily, Jersey no longer requires HK2 and the dependency injection implementation is pluggable. I've started working on a Guice-based implementation in this repo: https://github.com/HubSpot/jersey2-guicier

Once that's in a usable state, it should be a lot easier to upgrade to newer versions of Dropwizard/Jersey and it should hopefully fix a lot of the issues caused by using both HK2 and Guice

jhaber avatar Feb 15 '20 14:02 jhaber

👋

Once that's in a usable state

Update?

OneCricketeer avatar Mar 19 '20 19:03 OneCricketeer

I've been working on jersey2-guicier intermittently, however the API that you need to implement is pretty tied to HK2. I have most of the tests passing, but there are still a bunch of Guice errors when trying to actually use it.

jhaber avatar Mar 23 '20 12:03 jhaber

Is there some date when library with Dropwizard 2.0 support will be released?

Alexander-Paeshin avatar May 08 '20 06:05 Alexander-Paeshin

@Alexander-Paeshin I think the answer lays somewhere in the second comment.

Specificallly, this project is abandoned and the repo is archived

OneCricketeer avatar May 08 '20 19:05 OneCricketeer

Which, btw, @jhaber - this repo is not archived.

OneCricketeer avatar May 08 '20 19:05 OneCricketeer

@OneCricketeer @jhaber was referring to this repo -> https://github.com/Squarespace/jersey2-guice (in context to his earlier statement about that project.

tmack8001 avatar Aug 06 '20 16:08 tmack8001

I did find that https://github.com/xvik/dropwizard-guicey (another guice+dropwizard library) does support 2.x now. If upgrading is important for folks maybe migrating to this library which has had more regular contributions is in order... last commit here was back in August.

image

tmack8001 avatar Aug 06 '20 16:08 tmack8001