From 0cc380cc335780ebba57f46ad035badff6cfe299 Mon Sep 17 00:00:00 2001 From: Michael Reichenbach Date: Tue, 12 May 2020 14:53:53 +0200 Subject: [PATCH] feat(build): target JDK 1.8 BREAKING: downgrade from Java 11 to Java 8. Update your source code accordingly. This is because most servers still run Java 8 and most of the plugins out there do not support Java 11. --- .github/workflows/gradle.yml | 8 ++++---- build.gradle | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9aebe74..438af64 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -6,10 +6,10 @@ jobs: runs-on: ubuntu-18.04 steps: - - name: Set up JDK 11 + - name: Set up JDK 8 uses: actions/setup-java@v1 with: - java-version: 11 + java-version: 8 - name: Cache Gradle id: cache-gradle @@ -48,10 +48,10 @@ jobs: runs-on: ubuntu-18.04 steps: - - name: Set up JDK 11 + - name: Set up JDK 8 uses: actions/setup-java@v1 with: - java-version: 11 + java-version: 8 - name: Set up Node.js v12.x uses: actions/setup-node@v1 diff --git a/build.gradle b/build.gradle index 746866e..5d5acac 100644 --- a/build.gradle +++ b/build.gradle @@ -15,8 +15,8 @@ plugins { apply from: "$rootDir/gradle/jacoco.gradle" apply from: "$rootDir/gradle/publish.gradle" -sourceCompatibility = 11 -targetCompatibility = 11 +sourceCompatibility = 8 +targetCompatibility = 8 ext { //Define one of the supported mc versions