diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 3ecfb8df30..f398d3321e 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -108,13 +108,15 @@ jobs: name: Deploy runs-on: ubuntu-latest needs: [build, test-8, test] + permissions: + contents: read + packages: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: java-version: 8 distribution: 'zulu' - cache: 'maven' - name: Deploy run: mvn --batch-mode deploy env: diff --git a/pom.xml b/pom.xml index 060c965152..60ac96199e 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke cortexapps-github-api - 1.329 + 1.330 GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java @@ -220,17 +220,6 @@ all - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - sonatype-nexus-staging - https://oss.sonatype.org/ - true - - org.codehaus.mojo animal-sniffer-maven-plugin @@ -271,10 +260,6 @@ deploy - - org.sonatype.plugins - nexus-staging-maven-plugin - org.apache.maven.plugins maven-project-info-reports-plugin @@ -468,7 +453,7 @@ com.fasterxml.jackson.core jackson-databind - 2.14.0 + 2.22.2 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); } /**