kermitt2 / grobid

A machine learning software for extracting information from scholarly documents

Home Page:https://grobid.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update to Dropwizard 4.0

lfoppiano opened this issue Β· comments

I've started looking into upgrading from dropwizard 1.x to 4.x. It's quite some work but doable. I've got already a working version of grobid-quantities. πŸ˜„

I've started working on the branch features/update-dropwizard.

There are two-three main changes to be done:

  • [ ] update the GrobidServiceConfiguration to cover all the elements from the YAML (it seems more strict than dropwizard 1
  • [ ] (probably) get rid of the GrobidProperties
  • Move the output bytecode from jdk 1.8 to jdk 1.11
  • Fix HealthCheck
  • [ ] Fix tests to run with Junit 5 (org.junit.internal.runners.rules.ValidationError: The @ClassRule 'APP' must implement TestRule.)

I will update this thread as I progress

I think the main problem for this upgrade is that the JDK 1.8 compatibility is lost.
In my tests, I had some difficulties replacing dropwizard-guicier by the more modern dropwizard-guicey for the guice stuff support in the new Dropwizard, I did not manage to bind the classes to the module, but I see that you made it in #1032 !

#1032 should be working fine except for the tests that are running with the legacy engine

Nice! What about adding it to the 0.8.0 release and move to Java 11 as minimal requirement?

@kermitt2 I think it's time to let JDK 1.8 go πŸ˜„