From e272a2f94f6fffed123488d5c07c4947b933ced8 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Wed, 5 Apr 2023 11:42:55 +0100 Subject: [PATCH] Switch to Java 11 --- .github/workflows/build.yml | 4 ++-- build.gradle.kts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f2e7ff..c9d0b95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,10 +35,10 @@ jobs: sed -i'' -e "/^version=/s/=.*/=$BUILD_VERSION/" gradle.properties echo $BUILD_VERSION echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_ENV - - name: Set up JDK 1.8 + - name: Set up JDK 11 uses: actions/setup-java@v3 with: - java-version: 8 + java-version: 11 distribution: 'zulu' - name: Configure gradle ${{ matrix.gradle-version }} run: sed -i.bkp -e 's/\(distributionUrl=.*gradle\)-[0-9]*\.[0-9]*\(\.[0-9]*\)\{0,1\}\(.*\)/\1-${{ matrix.gradle-version }}\3/' gradle/wrapper/gradle-wrapper.properties diff --git a/build.gradle.kts b/build.gradle.kts index e45f0aa..e961cb1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,17 +10,17 @@ plugins { group = "pl.zalas" -java.sourceCompatibility = JavaVersion.VERSION_1_8 -java.targetCompatibility = JavaVersion.VERSION_1_8 +java.sourceCompatibility = JavaVersion.VERSION_11 +java.targetCompatibility = JavaVersion.VERSION_11 tasks.withType { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "11" } idea { project { - jdkName = "1.8" - languageLevel = IdeaLanguageLevel("1.8") + jdkName = "11" + languageLevel = IdeaLanguageLevel("11") } }