Skip to content

Commit 826229b

Browse files
committed
🔖 [Hooks]: Align JVM targets to 17
1 parent 8ef8773 commit 826229b

File tree

4 files changed

+33
-13
lines changed

4 files changed

+33
-13
lines changed

ai/build.gradle.kts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ plugins {
1414
}
1515

1616
kotlin {
17+
jvmToolchain(21)
18+
1719
compilerOptions.freeCompilerArgs.addAll(
1820
listOf(
1921
"-Xexpect-actual-classes",
@@ -24,12 +26,17 @@ kotlin {
2426
androidTarget {
2527
@OptIn(ExperimentalKotlinGradlePluginApi::class)
2628
compilerOptions {
27-
jvmTarget.set(JvmTarget.JVM_1_8)
29+
jvmTarget.set(JvmTarget.JVM_17)
2830
}
2931
publishLibraryVariants("release")
3032
}
3133

32-
jvm("desktop")
34+
jvm("desktop") {
35+
@OptIn(ExperimentalKotlinGradlePluginApi::class)
36+
compilerOptions {
37+
jvmTarget.set(JvmTarget.JVM_17)
38+
}
39+
}
3340

3441
listOf(
3542
iosX64(),
@@ -112,7 +119,7 @@ android {
112119
minSdk = 24
113120
}
114121
compileOptions {
115-
sourceCompatibility = JavaVersion.VERSION_1_8
116-
targetCompatibility = JavaVersion.VERSION_1_8
122+
sourceCompatibility = JavaVersion.VERSION_17
123+
targetCompatibility = JavaVersion.VERSION_17
117124
}
118125
}

app/build.gradle.kts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,24 @@ plugins {
1313
}
1414

1515
kotlin {
16+
jvmToolchain(21)
1617

1718
compilerOptions {
1819
freeCompilerArgs.add("-Xannotation-default-target=param-property")
1920
}
2021
androidTarget {
2122
@OptIn(ExperimentalKotlinGradlePluginApi::class)
2223
compilerOptions {
23-
jvmTarget.set(JvmTarget.JVM_11)
24+
jvmTarget.set(JvmTarget.JVM_17)
2425
}
2526
}
2627

27-
jvm("desktop")
28+
jvm("desktop") {
29+
@OptIn(ExperimentalKotlinGradlePluginApi::class)
30+
compilerOptions {
31+
jvmTarget.set(JvmTarget.JVM_17)
32+
}
33+
}
2834

2935
applyDefaultHierarchyTemplate()
3036
sourceSets {
@@ -129,8 +135,8 @@ android {
129135
}
130136
}
131137
compileOptions {
132-
sourceCompatibility = JavaVersion.VERSION_11
133-
targetCompatibility = JavaVersion.VERSION_11
138+
sourceCompatibility = JavaVersion.VERSION_17
139+
targetCompatibility = JavaVersion.VERSION_17
134140
}
135141
buildFeatures {
136142
compose = true

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mavenCentralAutomaticPublishing=true
4747

4848
GROUP=xyz.junerver.compose
4949
# use `-SNAPSHOT` can publish a snapshot to maven
50-
VERSION_NAME=2.2.2-beta-2
50+
VERSION_NAME=2.2.2-beta-3
5151

5252
POM_NAME=hooks
5353

hooks/build.gradle.kts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ plugins {
1414
}
1515

1616
kotlin {
17+
jvmToolchain(21)
18+
1719
compilerOptions.freeCompilerArgs.addAll(
1820
listOf(
1921
"-Xexpect-actual-classes",
@@ -25,12 +27,17 @@ kotlin {
2527
androidTarget {
2628
@OptIn(ExperimentalKotlinGradlePluginApi::class)
2729
compilerOptions {
28-
jvmTarget.set(JvmTarget.JVM_1_8)
30+
jvmTarget.set(JvmTarget.JVM_17)
2931
}
3032
publishLibraryVariants("release")
3133
}
3234

33-
jvm("desktop")
35+
jvm("desktop") {
36+
@OptIn(ExperimentalKotlinGradlePluginApi::class)
37+
compilerOptions {
38+
jvmTarget.set(JvmTarget.JVM_17)
39+
}
40+
}
3441

3542
listOf(
3643
iosX64(),
@@ -112,8 +119,8 @@ android {
112119
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
113120
}
114121
compileOptions {
115-
sourceCompatibility = JavaVersion.VERSION_1_8
116-
targetCompatibility = JavaVersion.VERSION_1_8
122+
sourceCompatibility = JavaVersion.VERSION_17
123+
targetCompatibility = JavaVersion.VERSION_17
117124
}
118125
}
119126

0 commit comments

Comments
 (0)