joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc
http://www.jsonschema2pojo.org
Apache License 2.0
6.22k stars 1.66k forks source link

Bump com.fasterxml.jackson.* dependencies from 2.14.2 to 2.15.2 #1548

Closed unkish closed 1 year ago

unkish commented 1 year ago

Closes #1531 and #1532

unkish commented 1 year ago

Short description of build failure reason

It appears that there are 2 issues at play:

  1. "Failed to transform jackson-core-2.15.0.jar" / "Workarounds for Jetifier issues"

    In the meantime, I found a workaround which is disabling Jetifier for jackson-core by adding the following to gradle.properties: android.jetifier.ignorelist = jackson-core

    Case 2: If you still need Jetifier to migrate other libraries, but not the one that is failing your build, then you can disable Jetifier specifically for that library by setting

  2. "Gradle 7.4 fails on multi release jar's with JDK 19 code #24390"

Version 2.15.0-rc1 of jackson-core introduces a multi-release jar [link to release notes], which is likely the reason why this error occurs on this particular version and not earlier versions.

Notes

Would it make sense to update (align) them as well ?

joelittlejohn commented 1 year ago

Thanks for this change. I think we can leave the gradle version alone in jsonschema2pojo-gradle-plugin\example\java and show the earliest version supported. I'm also happy to leave it alone in jsonschema2pojo-gradle-plugin to avoid any problems with the release. We can update as we need to.