Skip to content

Commit

Permalink
Gradle: Enforce same JDK everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Sep 10, 2023
1 parent 65667cf commit 990ed8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 990ed8b

Please sign in to comment.