From f9a679a18a87c6120326823d89e3bc88818f7a58 Mon Sep 17 00:00:00 2001 From: Ruth Date: Mon, 4 Sep 2023 10:30:09 +0200 Subject: [PATCH] Update plugin to jdk 17 (#161) --- .github/workflows/ci.yml | 4 ++-- .github/workflows/publish-release.yml | 2 +- .github/workflows/update-gradle-wrapper.yml | 6 ++++++ build.gradle.kts | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ddd28f..beed8cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,8 @@ jobs: - name: Set up JDK uses: actions/setup-java@v3 with: - distribution: 'zulu' - java-version: 8 + distribution: 'corretto' + java-version: 17 cache: 'gradle' - name: clean build run: ./gradlew clean build --no-daemon --info --stacktrace diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b28df39..2a4fc28 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -15,7 +15,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@v3 with: - java-version: 8 + java-version: 17 distribution: 'corretto' - name: Set artifact version run: | diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml index aa2824f..2fb2a74 100644 --- a/.github/workflows/update-gradle-wrapper.yml +++ b/.github/workflows/update-gradle-wrapper.yml @@ -11,6 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: 17 + cache: 'gradle' - name: Update Gradle Wrapper uses: gradle-update/update-gradle-wrapper-action@v1 with: diff --git a/build.gradle.kts b/build.gradle.kts index efce7d2..436a71e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,4 @@ -val javaVersion = JavaVersion.VERSION_1_8 +val javaVersion = JavaVersion.VERSION_17 plugins { alias(libs.plugins.kotlinJvm)