Gradle: Enforce same JDK everywhere

This commit is contained in:
Alva Swanson 2023-09-08 13:03:29 +02:00
parent 5bbc941c2c
commit 7a03bd24bd
No known key found for this signature in database
GPG key ID: 004760E77F753090
2 changed files with 8 additions and 3 deletions

View file

@ -13,7 +13,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macOS-latest, windows-latest] os: [ubuntu-latest, macOS-latest, windows-latest]
java: [ '11', '11.0.3', '15', '15.0.5'] java: ['11']
name: Test Java ${{ matrix.Java }}, ${{ matrix.os }} name: Test Java ${{ matrix.Java }}, ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4.0.0 - uses: actions/checkout@v4.0.0

View file

@ -8,8 +8,13 @@ repositories {
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
} }
sourceCompatibility = JavaVersion.VERSION_11 java {
targetCompatibility = JavaVersion.VERSION_11 toolchain {
languageVersion = JavaLanguageVersion.of(11)
vendor = JvmVendorSpec.AZUL
implementation = JvmImplementation.VENDOR_SPECIFIC
}
}
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
options.encoding = 'UTF-8' options.encoding = 'UTF-8'