-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dropwizard 4.x (and 5.x) not compatible with Logback core and classic beyond 1.5.12 #1239
Comments
This is the highest version of these libraries that we can use with Dropwizard 4.x (and even the alpha versions of 5.x). We also must remain on logback-access 1.4.14 or else Dropwizard code can't work because it depends on the 1.4.x logback-access, which has a different package than the newer logback-access 2.0.x versions. Dropwizard needs to update their usage of Logback classic, core, and access for us to move beyond these versions. :-( Fixes #1239
Currently, we cannot go beyond logback-core/classic 1.5.12 for the reasons described in #1239 so exclude logback from the dependabot grouped updates.
Currently, we cannot go beyond logback-core/classic 1.5.12 for the reasons described in #1239 so exclude logback from the dependabot grouped updates.
I looked at this again and what basically happened is that logback-core 1.5.13:
Since Anyway, the core problem is that Dropwizard's |
I think the other problem is that logback-access was split out into a separate repository, and the artifactId was "relocated" from The latest So, the But, regardless of all this, Dropwizard is still using the older logback-access, so Ok, so after all this meandering, basically we can't fix anything until Dropwizard updates all its logback dependencies. And Dropwizard 4.0.x and the 5.0.0-alpha-N versions are all still using logback version 1.4.14. |
And perhaps here is the missing piece as to why we are able to use the 1.5.x versions of logback-core and logback-classic:
ref: On the 1.5.x series in https://logback.qos.ch/news.html But, after the |
kiwi-bom 2.0.19 updated logback-classic and logback-core from 1.5.11 to 1.5.15, while the (legacy) logback-access stayed at 1.4.14.
After working through several updates, a bunch of tests started failing in kiwi-test with the following error:
The problem started in logback-core 1.5.13, which introduces the following method in
ch.qos.logback.core.pattern.PatternLayoutBase
:This method is not implemented by
ch.qos.logback.acces.PatternLayout
in logback-access 1.4.14 (since it is a much earlier version).Even when you update logback-access to 1.5.13 (or higher),
ch.qos.logback.access.common.PatternLayout
(note the extra 'common' subpackage) still does not implementgetDefaultConverterSupplierMap
and cannot work.In addition, Dropwizard 4.x (and 5.x alpha versions as of this writing) has the
LogbackAccessRequestLayout
class in dropwizard-request-logging, which extendsch.qos.logback.access.PatternLayout
(note there is no 'common' package) so it won't work with logback-access 1.5.x anyway.So, at present until Dropwizard 4.x and 5.x are updated, we cannot go beyond the following versions:
So, this issue is to revert logback-classic and logback-core to 1.5.12, which is the highest version that still works with logback-access 1.4.14.
The text was updated successfully, but these errors were encountered: