Don't pass -ea suffix into Gradle as the toolchain version

This commit is similar to what we had to do for Java 22-ea.

Given our actions have changed quite a bit, this commit replaces the
"java-distribution" parameter by a "java-early-access" parameter. When
set, it automatically switches the distribution to temurin as well as
applying the same handling of the Java version as in b8a6cab.

See gh-41698
This commit is contained in:
Stéphane Nicoll
2024-08-07 18:26:47 +02:00
parent 9e602ac0d3
commit 00cfe4dddd
3 changed files with 12 additions and 12 deletions

View File

@@ -24,8 +24,8 @@ jobs:
toolchain: true
- version: 22
toolchain: true
- version: 23-ea
distribution: temurin
- version: 23
early-access: true
toolchain: true
exclude:
- os:
@@ -46,7 +46,7 @@ jobs:
uses: ./.github/actions/build
with:
java-version: ${{ matrix.java.version }}
java-distribution: ${{ matrix.java.distribution || 'liberica' }}
java-early-access: ${{ matrix.java.early-access || 'false' }}
java-toolchain: ${{ matrix.java.toolchain }}
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
- name: Send Notification