From 58ad9db5edef94994128538e7809f56efedaae2d Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Fri, 14 May 2021 01:04:09 +0200 Subject: [PATCH] Jump to Java 16 --- .github/workflows/build.yml | 8 ++++---- build.gradle.kts | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17b88d9ba..e6fc3138a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,15 +6,15 @@ jobs: build: strategy: matrix: - java: ["1.8", "11"] os: ["ubuntu-18.04"] runs-on: "${{ matrix.os }}" steps: - name: "Checkout Repository" uses: "actions/checkout@v2.3.4" - - name: "Setup JDK ${{ matrix.java }}" - uses: "actions/setup-java@v1.4.3" + - name: "Setup JDK 16" + uses: "actions/setup-java@v2" with: - java-version: "${{ matrix.java }}" + distribution: "adopt" + java-version: "16" - name: "Clean Build" run: "./gradlew clean build" diff --git a/build.gradle.kts b/build.gradle.kts index 0fa9bef4d..ac2b094c9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -84,7 +84,8 @@ allprojects { plugins.withId("java") { the().toolchain { - languageVersion.set(JavaLanguageVersion.of(11)) + languageVersion.set(JavaLanguageVersion.of(16)) + vendor.set(JvmVendorSpec.ADOPTOPENJDK) } }