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 95d5a19
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 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 @@ -137,17 +137,6 @@ dependencies {
testImplementation(kotlin("test"))
}

tasks.named<Jar>("jar") {
enabled = false
}

tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}

repositories {
mavenLocal()
mavenCentral()
Expand Down

0 comments on commit 95d5a19

Please sign in to comment.