Skip to content

fix: bump jackson-databind to 2.21.0 in junit-sample#5

Merged
outofcoffee merged 1 commit into
ci/junit-sample-workflowfrom
fix/junit-sample-jackson-version
May 27, 2026
Merged

fix: bump jackson-databind to 2.21.0 in junit-sample#5
outofcoffee merged 1 commit into
ci/junit-sample-workflowfrom
fix/junit-sample-jackson-version

Conversation

@outofcoffee
Copy link
Copy Markdown
Contributor

Aligns the junit-sample's direct jackson-databind dependency with the Jackson version current Imposter releases are built against, so the example's runtime classpath uses a single, consistent Jackson.

Summary

  • Bump jackson-databind from 2.18.2 to 2.21.0 in junit-sample/pom.xml

Implementation details

Imposter publishes against Jackson 2.21.0. The sample's direct jackson-databind declaration was the nearest match in Maven's nearest-wins resolution, so it kept pulling jackson-annotations 2.18 onto the test classpath. That conflicted with jackson-module-kotlin 2.21 (which calls JsonProperty.isRequired() expecting the new OptBoolean return type introduced in 2.19+), producing NoSuchMethodError at engine startup and breaking the Examples job in imposter-jvm-engine's CI. Bumping the sample's direct version to 2.21.0 lets nearest-wins agree with Imposter on a single Jackson version.

The example's PetService.java uses ObjectMapper from src/main/java, so the dependency itself must stay (compile-scope) — only the version needs to track the engine.

@outofcoffee outofcoffee force-pushed the fix/junit-sample-jackson-version branch from 952d065 to 5c73293 Compare May 27, 2026 15:51
@outofcoffee outofcoffee changed the base branch from main to ci/junit-sample-workflow May 27, 2026 15:51
@outofcoffee outofcoffee merged commit 6c6044b into ci/junit-sample-workflow May 27, 2026
2 checks passed
@outofcoffee outofcoffee deleted the fix/junit-sample-jackson-version branch May 27, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant