From 7b6388d985adfbc3aa9385ef7387be72d4cff676 Mon Sep 17 00:00:00 2001 From: Distractic <46402441+Distractic@users.noreply.github.com> Date: Sun, 13 Aug 2023 11:40:47 +0200 Subject: [PATCH] chore: Upgrade java version (#3) --- .github/workflows/check-branch.yml | 2 +- .github/workflows/sonar.yml | 2 +- build.gradle.kts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-branch.yml b/.github/workflows/check-branch.yml index f705385..e9c56a0 100644 --- a/.github/workflows/check-branch.yml +++ b/.github/workflows/check-branch.yml @@ -21,7 +21,7 @@ jobs: - name: Initialization uses: ./.github/actions/init with: - jdk: 8 + jdk: 17 - name: Build uses: gradle/gradle-build-action@v2.7.0 diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index f38ea97..8f18b0b 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -22,7 +22,7 @@ jobs: - name: Initialization uses: ./.github/actions/init with: - jdk: 8 + jdk: 17 - name: Build uses: gradle/gradle-build-action@v2.7.0 diff --git a/build.gradle.kts b/build.gradle.kts index ba25431..7b501ed 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,9 +10,9 @@ plugins { jacoco } -val javaVersion get() = JavaVersion.VERSION_1_8 +val javaVersion get() = JavaVersion.VERSION_17 val javaVersionString get() = javaVersion.toString() -val javaVersionInt get() = 8 +val javaVersionInt get() = javaVersionString.toInt() detekt { // Allows having different behavior for CI.