From 77a54ecc91a4ff81cfd63f8091f172afa0692b4a Mon Sep 17 00:00:00 2001 From: Aaron Wirick Date: Tue, 3 Nov 2026 16:26:15 -0800 Subject: [PATCH] Run on Jackson 2.20+ (PropertyNamingStrategies.SNAKE_CASE) 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 --- .github/workflows/maven-build.yml | 1 + pom.xml | 4 ++-- src/main/java/org/kohsuke/github/GitHubClient.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 3ecfb8df30..9520fede63 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -108,6 +108,7 @@ jobs: name: Deploy runs-on: ubuntu-latest needs: [build, test-8, test] + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v2 diff --git a/pom.xml b/pom.xml index 060c965152..3638ab072a 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke cortexapps-github-api - 1.329 + 1.331 GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java @@ -468,7 +468,7 @@ com.fasterxml.jackson.core jackson-databind - 2.14.0 + 2.21.8 commons-io diff --git a/src/main/java/org/kohsuke/github/GitHubClient.java b/src/main/java/org/kohsuke/github/GitHubClient.java index 73491d148d..62f17d8139 100644 --- a/src/main/java/org/kohsuke/github/GitHubClient.java +++ b/src/main/java/org/kohsuke/github/GitHubClient.java @@ -78,7 +78,7 @@ class GitHubClient { MAPPER.setVisibility(new VisibilityChecker.Std(NONE, NONE, NONE, NONE, ANY)); MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); MAPPER.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, true); - MAPPER.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + MAPPER.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); } /**