You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As codecs for case class instances can be chosen (e.g. Jackson, Circe, Json4s) there is still a core dependency on Jackson.
I got the following error: com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.11.4 requires Jackson Databind version >= 2.11.0 and < 2.12.0
Found the Jackson import in com.sksamuel.elastic4s.ResponseHandler
Can this also be made pluggable?
The text was updated successfully, but these errors were encountered:
I'd like to understand why this hard dependency exists. Core libraries should/could be agnostic. In the code it looks like the 'elastic4s-json-jackson' module was written before most of the core code where later this jackson dependency was included.
I currently cannot bump some libraries to their latest versions because the latest elastic4s depends on a different version of jackson than those other libraries. If it was pluggable I could just switch to a different json-library.
You'd have to provide an implicit json serializer which we can do.
I'm working on a dotty compatible version of elastic4s right now, so I can incorporate this idea into the next major release.
Lol, was again checking why there is a core dependency on Jackson to see what needs to happen to support Scala Native. Then I found this issue.. @sksamuel What happened with the idea? 🙃
As codecs for case class instances can be chosen (e.g. Jackson, Circe, Json4s) there is still a core dependency on Jackson.
I got the following error:
com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.11.4 requires Jackson Databind version >= 2.11.0 and < 2.12.0
Found the Jackson import in
com.sksamuel.elastic4s.ResponseHandler
Can this also be made pluggable?
The text was updated successfully, but these errors were encountered: