Skip to content

Commit 676c078

Browse files
committed
feat: update Java source and target compatibility to version 21
1 parent 4a3e397 commit 676c078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ subprojects {
3737
apply(plugin = "com.vanniktech.maven.publish")
3838

3939
java {
40-
sourceCompatibility = JavaVersion.VERSION_24
40+
sourceCompatibility = JavaVersion.VERSION_21
4141
}
4242

4343
// currently ktlint has issues with context parameters.
@@ -50,7 +50,7 @@ subprojects {
5050
tasks.withType<KotlinJvmCompile>().configureEach {
5151
compilerOptions {
5252
freeCompilerArgs.addAll(listOf("-Xcontext-parameters", "-Xjsr305=strict"))
53-
jvmTarget = JvmTarget.fromTarget("24")
53+
jvmTarget = JvmTarget.fromTarget("21")
5454
}
5555
}
5656

0 commit comments

Comments
 (0)