Skip to content

Commit 9f6d9f0

Browse files
Merge branch 'main' into json-of
2 parents 44753cf + 50a9368 commit 9f6d9f0

File tree

13 files changed

+62
-41
lines changed

13 files changed

+62
-41
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "monthly"
7+
cooldown:
8+
default-days: 14
79
groups:
810
# Name is used for branch name and pull request title
911
maven:
@@ -15,6 +17,8 @@ updates:
1517
directory: "/"
1618
schedule:
1719
interval: "monthly"
20+
cooldown:
21+
default-days: 14
1822
groups:
1923
# Name is used for branch name and pull request title
2024
github-actions:

.github/workflows/build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
permissions:
1212
contents: read # to fetch code (actions/checkout)
1313

14+
env:
15+
# Common Maven arguments
16+
MAVEN_ARGS: --show-version --batch-mode --no-transfer-progress
17+
1418
jobs:
1519
build:
1620
name: "Build on JDK ${{ matrix.java }}"
@@ -23,7 +27,8 @@ jobs:
2327
- java: 11
2428
# Disable Enforcer check which (intentionally) prevents using JDK 11 for building
2529
# Exclude 'test-graal-native-image' module because JUnit 6 requires >= Java 17
26-
extra-mvn-args: -Denforcer.fail=false --projects '!test-graal-native-image'
30+
# Exclude 'proto' module because protobuf-maven-plugin requires >= Java 17
31+
extra-mvn-args: -Denforcer.fail=false --projects '!test-graal-native-image,!proto'
2732
- java: 25
2833
# Disable Enforcer check which (intentionally) prevents using JDK 25 for building
2934
# Exclude 'test-shrinker' because ProGuard does not support JDK 25 yet, see
@@ -42,7 +47,7 @@ jobs:
4247
cache: 'maven'
4348
- name: Build with Maven
4449
# This also runs javadoc:jar to detect any issues with the Javadoc generated during release
45-
run: mvn --batch-mode --no-transfer-progress verify javadoc:jar ${{ matrix.extra-mvn-args || '' }}
50+
run: mvn verify javadoc:jar ${{ matrix.extra-mvn-args || '' }}
4651

4752
native-image-test:
4853
name: "GraalVM Native Image test (JDK ${{ matrix.java }})"
@@ -59,7 +64,7 @@ jobs:
5964
steps:
6065
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6166
- name: "Set up GraalVM"
62-
uses: graalvm/setup-graalvm@2a2412009026a83f51d179f92dc2b3fd4c8142df # v1.4.1
67+
uses: graalvm/setup-graalvm@eec48106e0bf45f2976c2ff0c3e22395cced8243 # v1.4.2
6368
with:
6469
java-version: ${{ matrix.java }}
6570
distribution: 'graalvm'
@@ -69,7 +74,7 @@ jobs:
6974
- name: Build and run tests
7075
# Only run tests in `test-graal-native-image` (and implicitly build and run tests in `gson`),
7176
# everything else is covered already by regular build job above
72-
run: mvn test --batch-mode --no-transfer-progress --activate-profiles native-image-test --projects test-graal-native-image --also-make ${{ matrix.extra-mvn-args || '' }}
77+
run: mvn test --activate-profiles native-image-test --projects test-graal-native-image --also-make ${{ matrix.extra-mvn-args || '' }}
7378

7479
verify-reproducible-build:
7580
name: "Verify reproducible build"
@@ -85,13 +90,13 @@ jobs:
8590
cache: 'maven'
8691

8792
- name: "Verify no plugin issues"
88-
run: mvn artifact:check-buildplan --batch-mode --no-transfer-progress --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
93+
run: mvn artifact:check-buildplan --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
8994

9095
- name: "Verify reproducible build"
9196
# See https://maven.apache.org/guides/mini/guide-reproducible-builds.html#how-to-test-my-maven-build-reproducibility
9297
run: |
93-
mvn clean install --batch-mode --no-transfer-progress -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
98+
mvn clean install -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
9499
# Run with `-Dbuildinfo.attach=false`; otherwise `artifact:compare` fails because it creates a `.buildinfo` file which
95100
# erroneously references the existing `.buildinfo` file (respectively because it is overwriting it, a file with size 0)
96101
# See https://issues.apache.org/jira/browse/MARTIFACT-57
97-
mvn clean verify artifact:compare --batch-mode --no-transfer-progress -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker' -Dbuildinfo.attach=false
102+
mvn clean verify artifact:compare -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker' -Dbuildinfo.attach=false

.github/workflows/check-android-compatibility.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
permissions:
1616
contents: read # to fetch code (actions/checkout)
1717

18+
env:
19+
# Common Maven arguments
20+
MAVEN_ARGS: --show-version --batch-mode --no-transfer-progress
21+
1822
jobs:
1923
check-android-compatibility:
2024
runs-on: ubuntu-latest
@@ -31,4 +35,4 @@ jobs:
3135

3236
- name: Check Android compatibility
3337
run: |
34-
mvn --batch-mode --no-transfer-progress compile animal-sniffer:check@check-android-compatibility -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
38+
mvn compile animal-sniffer:check@check-android-compatibility -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'

.github/workflows/check-api-compatibility.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on: pull_request
66
permissions:
77
contents: read # to fetch code (actions/checkout)
88

9+
env:
10+
# Common Maven arguments
11+
MAVEN_ARGS: --show-version --batch-mode --no-transfer-progress
12+
913
jobs:
1014
check-api-compatibility:
1115
runs-on: ubuntu-latest
@@ -37,20 +41,20 @@ jobs:
3741
run: |
3842
cd gson-old-japicmp
3943
# Set dummy version
40-
mvn --batch-mode --no-transfer-progress org.codehaus.mojo:versions-maven-plugin:2.16.2:set "-DnewVersion=0.0.0-JAPICMP-OLD"
44+
mvn org.codehaus.mojo:versions-maven-plugin:2.16.2:set "-DnewVersion=0.0.0-JAPICMP-OLD"
4145
# Install artifacts with dummy version in local repository; used later by Maven plugin for comparison
42-
mvn --batch-mode --no-transfer-progress install -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
46+
mvn install -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
4347
4448
- name: Check out new version
4549
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4650

4751
- name: Check API compatibility
4852
id: check-compatibility
4953
run: |
50-
mvn --batch-mode --fail-at-end --no-transfer-progress package japicmp:cmp -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
54+
mvn package japicmp:cmp --fail-at-end -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker'
5155
5256
- name: Upload API differences artifacts
53-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
57+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5458
# Run on workflow success (in that case differences report might include added methods and classes)
5559
# or when API compatibility check failed
5660
if: success() || ( failure() && steps.check-compatibility.outcome == 'failure' )

.github/workflows/cifuzz.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
dry-run: false
2626
output-sarif: true
2727
- name: Upload Crash
28-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
28+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
2929
if: failure() && steps.build.outcome == 'success'
3030
with:
3131
name: artifacts
3232
path: ./out/artifacts
3333
- name: Upload Sarif
3434
if: always() && steps.build.outcome == 'success'
35-
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
35+
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
3636
with:
3737
# Path to SARIF file relative to the root of the repository
3838
sarif_file: cifuzz-sarif/results.sarif

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
permissions:
1515
contents: read # to fetch code (actions/checkout)
1616

17+
env:
18+
# Common Maven arguments
19+
MAVEN_ARGS: --show-version --batch-mode --no-transfer-progress
20+
1721
jobs:
1822
analyze:
1923
name: Analyze (${{ matrix.language }})
@@ -45,7 +49,7 @@ jobs:
4549

4650
# Initializes the CodeQL tools for scanning
4751
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
52+
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
4953
with:
5054
languages: ${{ matrix.language }}
5155
build-mode: ${{ matrix.build-mode }}
@@ -58,9 +62,9 @@ jobs:
5862
- name: Compile sources (Java)
5963
if: ${{ matrix.language == 'java' }}
6064
run: |
61-
mvn compile --batch-mode --no-transfer-progress
65+
mvn compile
6266
6367
- name: Perform CodeQL Analysis
64-
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
68+
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
6569
with:
6670
category: "/language:${{ matrix.language }}"

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6565
# format to the repository Actions tab.
6666
- name: "Upload artifact"
67-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
67+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6868
with:
6969
name: SARIF file
7070
path: results.sarif
@@ -73,6 +73,6 @@ jobs:
7373
# Upload the results to GitHub's code scanning dashboard (optional).
7474
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7575
- name: "Upload to code-scanning"
76-
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
76+
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
7777
with:
7878
sarif_file: results.sarif

gson/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<dependency>
5151
<groupId>com.google.errorprone</groupId>
5252
<artifactId>error_prone_annotations</artifactId>
53-
<version>2.42.0</version>
53+
<version>2.43.0</version>
5454
</dependency>
5555

5656
<dependency>
@@ -211,12 +211,12 @@
211211
<dependency>
212212
<groupId>com.guardsquare</groupId>
213213
<artifactId>proguard-base</artifactId>
214-
<version>7.7.0</version>
214+
<version>7.8.0</version>
215215
</dependency>
216216
<dependency>
217217
<groupId>com.guardsquare</groupId>
218218
<artifactId>proguard-core</artifactId>
219-
<version>9.1.10</version>
219+
<version>9.2.0</version>
220220
</dependency>
221221
</dependencies>
222222
<configuration>

metrics/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>com.fasterxml.jackson.core</groupId>
5555
<artifactId>jackson-databind</artifactId>
56-
<version>2.20.0</version>
56+
<version>2.20.1</version>
5757
</dependency>
5858
<dependency>
5959
<groupId>com.google.caliper</groupId>

pom.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<plugin>
101101
<groupId>org.apache.maven.plugins</groupId>
102102
<artifactId>maven-enforcer-plugin</artifactId>
103-
<version>3.6.1</version>
103+
<version>3.6.2</version>
104104
<executions>
105105
<execution>
106106
<id>enforce-versions</id>
@@ -186,13 +186,10 @@
186186
<plugin>
187187
<groupId>org.apache.maven.plugins</groupId>
188188
<artifactId>maven-artifact-plugin</artifactId>
189-
<version>3.6.0</version>
189+
<version>3.6.1</version>
190190
<executions>
191191
<execution>
192192
<goals>
193-
<!-- This logs a warning about `source.scm.tag=HEAD`, but this can be ignored;
194-
during release Maven Release Plugin temporarily changes the `source.scm.tag`
195-
value to the actual Git tag, which will then not cause a warning -->
196193
<goal>buildinfo</goal>
197194
</goals>
198195
</execution>
@@ -296,7 +293,7 @@
296293
<path>
297294
<groupId>com.google.errorprone</groupId>
298295
<artifactId>error_prone_core</artifactId>
299-
<version>2.42.0</version>
296+
<version>2.43.0</version>
300297
</path>
301298
</annotationProcessorPaths>
302299
</configuration>
@@ -412,7 +409,7 @@
412409
<plugin>
413410
<groupId>org.apache.maven.plugins</groupId>
414411
<artifactId>maven-antrun-plugin</artifactId>
415-
<version>3.1.0</version>
412+
<version>3.2.0</version>
416413
<executions>
417414
<!-- Replaces version placeholders with the current version; this is mainly useful for
418415
Javadoc where this allows writing `@since $next-version$` -->
@@ -480,7 +477,7 @@
480477
<plugin>
481478
<groupId>com.github.siom79.japicmp</groupId>
482479
<artifactId>japicmp-maven-plugin</artifactId>
483-
<version>0.23.1</version>
480+
<version>0.24.2</version>
484481
<configuration>
485482
<skip>${gson.isTestModule}</skip>
486483

@@ -515,7 +512,7 @@
515512
<plugin>
516513
<groupId>org.codehaus.mojo</groupId>
517514
<artifactId>animal-sniffer-maven-plugin</artifactId>
518-
<version>1.24</version>
515+
<version>1.26</version>
519516
<executions>
520517
<execution>
521518
<id>check-android-compatibility</id>
@@ -563,11 +560,11 @@
563560
</plugins>
564561
</build>
565562
</profile>
566-
<!-- Disable Error Prone before Java 17 -->
563+
<!-- Disable Error Prone before Java 21 -->
567564
<profile>
568565
<id>disable-error-prone</id>
569566
<activation>
570-
<jdk>[,17)</jdk>
567+
<jdk>[,21)</jdk>
571568
</activation>
572569
<build>
573570
<plugins>
@@ -578,6 +575,7 @@
578575
<compilerArgs combine.self="override">
579576
<compilerArg>-Xlint:all,-options</compilerArg>
580577
</compilerArgs>
578+
<annotationProcessorPaths combine.self="override" />
581579
</configuration>
582580
</plugin>
583581
</plugins>

0 commit comments

Comments
 (0)