Skip to content

Commit 1400076

Browse files
authored
Test build on Java 21 and Java 25 (#396)
2 parents 9d2da47 + 343e111 commit 1400076

2 files changed

Lines changed: 28 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,28 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Checkout
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
18+
- name: Read Maven version
19+
id: maven-version
20+
run: echo "version=$(cat .github/vars/maven-version.txt)" >> $GITHUB_OUTPUT
1521

22+
- name: Setup Python
23+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
24+
with:
25+
python-version: '3.13'
26+
27+
- name: Run pre-commit
28+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
29+
30+
maven-build:
31+
runs-on: ubuntu-latest
32+
needs: build
33+
strategy:
34+
matrix:
35+
java: [17, 21, 25-ea]
36+
steps:
1637
- name: Checkout
1738
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1839

@@ -25,21 +46,15 @@ jobs:
2546
with:
2647
checkout-enabled: false
2748
java-distribution: 'temurin'
28-
java-version: 17
49+
java-version: ${{ matrix.java }}
2950
maven-version: ${{ steps.maven-version.outputs.version }}
3051
cache-enabled: true
3152

32-
- name: Setup Python
33-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
34-
with:
35-
python-version: '3.13'
36-
- name: Run pre-commit
37-
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
38-
3953
- name: Maven build
4054
run: mvn --batch-mode --update-snapshots verify
4155

4256
- name: Upload coverage reports to Codecov
57+
if: matrix.java == '17'
4358
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
4459
with:
4560
files: target/site/jacoco/jacoco.xml

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<classgraph.version>4.8.181</classgraph.version>
7373

7474
<!-- Plugin version -->
75+
<palantir.java.format.version>2.74.0</palantir.java.format.version>
7576
<build.helper-maven-plugin.version>3.6.1</build.helper-maven-plugin.version>
7677
<jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
7778
<spotless-maven-plugin.version>2.46.1</spotless-maven-plugin.version>
@@ -518,7 +519,10 @@
518519
<indent>
519520
<spaces>true</spaces>
520521
</indent>
521-
<palantirJavaFormat />
522+
<palantirJavaFormat>
523+
<!-- Until http://github.com/diffplug/spotless/issues/2468 -->
524+
<version>${palantir.java.format.version}</version>
525+
</palantirJavaFormat>
522526
<removeUnusedImports />
523527
<trimTrailingWhitespace />
524528
</java>

0 commit comments

Comments
 (0)