Skip to content

Conversation

@anqorithm
Copy link

Description:

Fixes #11236

Problem

Users with older Jackson versions (e.g., 2.12.7) encounter NoSuchFieldError: READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE because jackson-annotations was not being shaded alongside jackson-databind.

Root Cause

  • docker-java-api (an api dependency) brings in jackson-annotations as transitive
  • The shading logic excludes all api transitives from being shaded
  • So jackson-annotations remained unshaded while jackson-databind was relocated

Fix

  • Exclude jackson-annotations from docker-java-api
  • Add explicit shaded dependencies for jackson-annotations and jackson-core
  • Added tests to verify both are properly shaded

@anqorithm anqorithm requested a review from a team as a code owner December 7, 2025 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: shaded jackson databind expects jackson annotations > 2.12 on classpath

1 participant