Skip to content

Commit f3fedd0

Browse files
dfa1claude
andcommitted
experiment: lower compile target to JDK 22 and test 22 + 25 in CI
FFM (java.lang.foreign) went stable in JDK 22 (JEP 454), so the project may not actually need a JDK 25 floor. Drop maven.compiler.release 25 -> 22 and run the CI build matrix on both 22 and 25 to find out. If 22 is green, the supported floor can drop, widening the addressable audience substantially (most prod JVMs are on 17/21, not 25). Experiment only — not for merge as-is; report-driven. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent eb8de7d commit f3fedd0

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,24 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
# Experiment: does the project build + test on JDK 22 (first stable FFM)
16+
# as well as 25? If 22 is green, the supported floor can drop from 25.
17+
java: ['22', '25']
1218

1319
steps:
1420
- name: Checkout (with zstd submodule)
1521
uses: actions/checkout@v4
1622
with:
1723
submodules: recursive
1824

19-
- name: Set up JDK 25
25+
- name: Set up JDK ${{ matrix.java }}
2026
uses: actions/setup-java@v4
2127
with:
2228
distribution: temurin
23-
java-version: '25'
29+
java-version: ${{ matrix.java }}
2430
cache: maven
2531

2632
- name: Set up Zig

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
<properties>
5252
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53-
<maven.compiler.release>25</maven.compiler.release>
53+
<maven.compiler.release>22</maven.compiler.release>
5454
<central-publishing-plugin.version>0.11.0</central-publishing-plugin.version>
5555
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
5656
<maven-source-plugin.version>3.4.0</maven-source-plugin.version>
@@ -164,7 +164,7 @@
164164
<artifactId>maven-compiler-plugin</artifactId>
165165
<version>3.15.0</version>
166166
<configuration>
167-
<release>25</release>
167+
<release>22</release>
168168
<failOnWarning>true</failOnWarning>
169169
<compilerArgs>
170170
<arg>-Xlint:all</arg>
@@ -176,7 +176,7 @@
176176
<artifactId>maven-javadoc-plugin</artifactId>
177177
<version>3.12.0</version>
178178
<configuration>
179-
<release>25</release>
179+
<release>22</release>
180180
<failOnError>true</failOnError>
181181
<failOnWarnings>true</failOnWarnings>
182182
<quiet>true</quiet>

0 commit comments

Comments
 (0)