Gradle: Enforce same JDK everywhere

This commit is contained in:
Alva Swanson 2023-09-08 13:03:29 +02:00
parent 65667cf4e7
commit 990ed8b1e6
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:
matrix:
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 }}
steps:
- uses: actions/checkout@v4.0.0

View File

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