Jump to Java 16

This commit is contained in:
NotMyFault 2021-05-14 01:04:09 +02:00
parent 6fd55b47c2
commit 58ad9db5ed
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
2 changed files with 6 additions and 5 deletions

View File

@ -6,15 +6,15 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
java: ["1.8", "11"]
os: ["ubuntu-18.04"] os: ["ubuntu-18.04"]
runs-on: "${{ matrix.os }}" runs-on: "${{ matrix.os }}"
steps: steps:
- name: "Checkout Repository" - name: "Checkout Repository"
uses: "actions/checkout@v2.3.4" uses: "actions/checkout@v2.3.4"
- name: "Setup JDK ${{ matrix.java }}" - name: "Setup JDK 16"
uses: "actions/setup-java@v1.4.3" uses: "actions/setup-java@v2"
with: with:
java-version: "${{ matrix.java }}" distribution: "adopt"
java-version: "16"
- name: "Clean Build" - name: "Clean Build"
run: "./gradlew clean build" run: "./gradlew clean build"

View File

@ -84,7 +84,8 @@ allprojects {
plugins.withId("java") { plugins.withId("java") {
the<JavaPluginExtension>().toolchain { the<JavaPluginExtension>().toolchain {
languageVersion.set(JavaLanguageVersion.of(11)) languageVersion.set(JavaLanguageVersion.of(16))
vendor.set(JvmVendorSpec.ADOPTOPENJDK)
} }
} }