From df5ba0c2cfd38d5398f11a53666bab35f6e6be03 Mon Sep 17 00:00:00 2001 From: Yang Date: Wed, 18 Sep 2024 11:21:20 +1000 Subject: [PATCH] Build and compile with Java 23. --- .github/workflows/ci.yml | 8 ++++---- build.gradle.kts | 4 ++-- gradle/gradle-daemon-jvm.properties | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d28faee..fb4735e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'zulu' - java-version: '22' + java-version: '23' - uses: gradle/actions/setup-gradle@v4 with: cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} @@ -46,7 +46,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'zulu' - java-version: '22' + java-version: '23' - uses: gradle/actions/setup-gradle@v4 with: cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} @@ -68,7 +68,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'zulu' - java-version: '22' + java-version: '23' - name: Configure git user run: | git config --global user.name "GitHub Action" @@ -101,7 +101,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'zulu' - java-version: '22' + java-version: '23' - uses: gradle/actions/setup-gradle@v4 with: cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} diff --git a/build.gradle.kts b/build.gradle.kts index 2988598..5583cc3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -37,7 +37,7 @@ gradlePlugin { kotlin { jvmToolchain { - languageVersion.set(JavaLanguageVersion.of(22)) + languageVersion.set(JavaLanguageVersion.of(23)) vendor.set(JvmVendorSpec.AZUL) } } @@ -116,7 +116,7 @@ detekt { } tasks.withType().configureEach { - jvmTarget = JvmTarget.JVM_21.target + jvmTarget = JvmTarget.JVM_22.target reports { html.outputLocation.set(file("build/reports/detekt/${project.name}.html")) } diff --git a/gradle/gradle-daemon-jvm.properties b/gradle/gradle-daemon-jvm.properties index ef4314f..cb5c20f 100644 --- a/gradle/gradle-daemon-jvm.properties +++ b/gradle/gradle-daemon-jvm.properties @@ -1,2 +1,2 @@ #This file is generated by updateDaemonJvm -toolchainVersion=22 +toolchainVersion=23