Add JDK 25 to CI test matrix (#703)

Update CI to test on JDK 25 (LTS) and remove JDK 24 (non-LTS).

Changes:
- Replace JDK 24 with JDK 25 in test matrix
- Add --enable-native-access=ALL-UNNAMED flag for JDK 24+ tests
- This ensures native library loading works correctly per JEP 472

The CI now tests on: JDK 8, 11, 17, 21, 25 (all LTS versions plus latest)

Related to #689

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Taro L. Saito 2025-11-24 09:51:35 -08:00 committed by GitHub
parent 92540f3a60
commit 3e32cbb449
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ jobs:
test-jdk: test-jdk:
strategy: strategy:
matrix: matrix:
version: [ '8', '11', '17', '21', '24' ] version: [ '8', '11', '17', '21', '25' ]
name: test jdk${{ matrix.version }} name: test jdk${{ matrix.version }}
needs: changes needs: changes
if: ${{ needs.changes.outputs.code == 'true' }} if: ${{ needs.changes.outputs.code == 'true' }}
@ -58,4 +58,8 @@ jobs:
key: ${{ runner.os }}-jdk${{ matrix.version }}-${{ hashFiles('**/*.sbt') }} key: ${{ runner.os }}-jdk${{ matrix.version }}-${{ hashFiles('**/*.sbt') }}
restore-keys: ${{ runner.os }}-jdk${{ matrix.version }}- restore-keys: ${{ runner.os }}-jdk${{ matrix.version }}-
- name: Test - name: Test
run: ./sbt test run: |
if [ "${{ matrix.version }}" -ge "24" ]; then
export _JAVA_OPTIONS="--enable-native-access=ALL-UNNAMED"
fi
./sbt test