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:
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"

View File

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