Commit bb30edf
ci: map JDK vendor tokens to JvmVendorSpec constants
The CI matrix passes a short vendor token such as "eclipse" for the test
JDK toolchain. JvmVendorSpec.matching("eclipse") probes the runtime
java.vendor, which Temurin reports inconsistently across versions: JDK 8
reports "Temurin" while 11+ report "Eclipse Adoptium". A plain substring
match therefore cannot resolve a Temurin 8 toolchain, and the same gap
exists for any distribution whose vendor string differs from its token.
Map the known tokens to Gradle's built-in JvmVendorSpec constants, which
recognise every alias a distribution reports, and fall back to a
substring match for anything unmapped. Also guard against a blank vendor
so an empty token no longer narrows the toolchain query.
Mirrors pgjdbc/pgjdbc#4257, which shares this build-logic file.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a82fa09 commit bb30edf
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments