Skip to content

Commit

Permalink
Switch to Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikreuzer committed Dec 13, 2024
1 parent 733eef4 commit d3a8f13
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ subprojects {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
freeCompilerArgs += "-Xcontext-receivers"
jvmTarget = "17"
jvmTarget = "21"
}
}

kotlin {
jvmToolchain(17)
jvmToolchain(21)
}

java {
sourceCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
withSourcesJar()
withJavadocJar()
}
Expand Down Expand Up @@ -144,9 +144,6 @@ tasks.named<Jar>("jar") {
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}

repositories {
mavenLocal()
Expand Down

0 comments on commit d3a8f13

Please sign in to comment.