Skip to content

Jackson 2.22 compatibility: replace removed PropertyNamingStrategy.SNAKE_CASE - #37

Closed
engrams-agent[bot] wants to merge 4 commits into
mainfrom
engrams/jackson-2.22-upgrade
Closed

engrams-agent[bot] wants to merge 4 commits into
mainfrom
engrams/jackson-2.22-upgrade

Conversation

@engrams-agent

@engrams-agent engrams-agent Bot commented Aug 31, 2026

Copy link
Copy Markdown

What

Jackson 2.20 removed the deprecated PropertyNamingStrategy constants (including SNAKE_CASE). The fork pinned at 1.329 still references PropertyNamingStrategy.SNAKE_CASE in GitHubClient.<clinit>, which throws NoSuchFieldError at runtime when the consuming app (cortexapps/brain-backend) upgrades to Jackson 2.22.

Changes

  • GitHubClient.java: PropertyNamingStrategy.SNAKE_CASE → PropertyNamingStrategies.SNAKE_CASE (available since Jackson 2.12, so this stays compatible with older Jackson too).
  • pom.xml: jackson-databind 2.14.0 → 2.22.2.
  • pom.xml: version 1.329 → 1.330.

Why

Unblocks the Jackson 2.18→2.22 upgrade in cortexapps/brain-backend (Dependabot PR #16943), which depends on org.kohsuke:cortexapps-github-api.

Merging this publishes 1.330 to GitHub Packages via the existing deploy job.

🤖 Generated with Claude Code

engrams-agent Bot and others added 4 commits August 31, 2026 12:17
…_CASE

Jackson 2.20 removed the deprecated PropertyNamingStrategy constants.
Use PropertyNamingStrategies.SNAKE_CASE (available since 2.12) instead.
Bump jackson-databind 2.14.0 -> 2.22.2 and version 1.329 -> 1.330.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The deploy job failed: setup-java@v2 cache on Java 8 returned 400, and
the workflow only granted contents:read so mvn deploy could not publish.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The fork's distributionManagement points at GitHub Packages (id=github),
but upstream's nexus-staging-maven-plugin was still present and injects
its own deploy goal requiring sonatype-nexus-staging credentials. Remove
it so mvn deploy uses the standard deploy plugin against GitHub Packages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
akwirick added a commit that referenced this pull request Nov 4, 2026
Changes:
- Replaced the removed PropertyNamingStrategy.SNAKE_CASE with PropertyNamingStrategies.SNAKE_CASE in GitHubClient
- Bumped jackson-databind to 2.21.8
- Set the version to 1.331, since unmerged #37 already published 1.330
- Gated the deploy job to pushes on main, so pull request runs stop publishing

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@akwirick

akwirick commented Nov 4, 2026

Copy link
Copy Markdown

🤖 Superseded by #39 (merged).

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.

1 participant