Skip to content

Commit

Permalink
Build and compile with Java 23.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Sep 18, 2024
1 parent 2c5d124 commit a8800d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '22'
java-version: '23'

- uses: gradle/actions/setup-gradle@v4
with:
Expand All @@ -46,7 +46,7 @@ jobs:
- uses: graalvm/setup-graalvm@v1
with:
distribution: 'graalvm-community'
java-version: '22'
java-version: '23'
github-token: ${{ secrets.GITHUB_TOKEN }}

- uses: gradle/actions/setup-gradle@v4
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ graalvmNative {
}
binaries.configureEach {
javaLauncher = javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(22))
languageVersion.set(JavaLanguageVersion.of(23))
vendor.set(JvmVendorSpec.GRAAL_VM)
}
resources.autodetect()
Expand Down Expand Up @@ -68,7 +68,7 @@ tasks.withType<GenerateJavaTask>().configureEach {

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(22))
languageVersion.set(JavaLanguageVersion.of(22)) // TODO update once Kotlin supports Java 23
vendor.set(JvmVendorSpec.AZUL)
}
compilerOptions {
Expand Down Expand Up @@ -99,7 +99,7 @@ detekt {
allRules = true
}
tasks.withType<Detekt>().configureEach {
jvmTarget = JvmTarget.JVM_21.target
jvmTarget = JvmTarget.JVM_22.target
reports {
html.outputLocation.set(file("build/reports/detekt/${project.name}.html"))
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/gradle-daemon-jvm.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#This file is generated by updateDaemonJvm
toolchainVersion=22
toolchainVersion=23

0 comments on commit a8800d4

Please sign in to comment.