Skip to content

Commit cd77763

Browse files
fix: update dependencies (#23)
Bump dependency versions in libs.versions.toml, upgrade JVM target to 17 across demo modules, and set Kotlin API/language version to 2.1.
1 parent 25f860a commit cd77763

6 files changed

Lines changed: 56 additions & 26 deletions

File tree

build.gradle.kts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ allprojects {
4545
}
4646
}
4747

48+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
49+
compilerOptions {
50+
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_1)
51+
languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_1)
52+
}
53+
}
54+
4855
tasks.withType<DependencyUpdatesTask> {
4956
outputFormatter {
5057
val updatable = this.outdated.dependencies
@@ -109,13 +116,16 @@ tasks.withType<DependencyUpdatesTask> {
109116
if (outputFile.exists()) {
110117
outputFile.delete()
111118
}
112-
} catch (ignored: Throwable) { }
119+
} catch (ignored: Throwable) {
120+
}
113121
try {
114122
outputFile.parentFile?.mkdirs()
115-
} catch (ignored: Throwable) { }
123+
} catch (ignored: Throwable) {
124+
}
116125
try {
117126
outputFile.writeText(markdown)
118-
} catch (ignored: Throwable) { }
127+
} catch (ignored: Throwable) {
128+
}
119129
}
120130
rejectVersionIf {
121131
isNonStable(candidate.version) && !isNonStable(currentVersion)

core/KMPTolgee.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ Pod::Spec.new do |spec|
5151
}
5252
]
5353

54-
end
54+
end

demo/exampleandroid/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.android.application)
35
alias(libs.plugins.android)
@@ -29,8 +31,11 @@ android {
2931
sourceCompatibility = JavaVersion.VERSION_11
3032
targetCompatibility = JavaVersion.VERSION_11
3133
}
32-
kotlinOptions {
33-
jvmTarget = "11"
34+
}
35+
36+
kotlin {
37+
compilerOptions {
38+
jvmTarget.set(JvmTarget.JVM_17)
3439
}
3540
}
3641

demo/examplejetpack/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.android.application)
35
alias(libs.plugins.android)
@@ -31,8 +33,11 @@ android {
3133
sourceCompatibility = JavaVersion.VERSION_11
3234
targetCompatibility = JavaVersion.VERSION_11
3335
}
34-
kotlinOptions {
35-
jvmTarget = "11"
36+
}
37+
38+
kotlin {
39+
compilerOptions {
40+
jvmTarget.set(JvmTarget.JVM_17)
3641
}
3742
}
3843

demo/multiplatform-compose/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.multiplatform)
35
alias(libs.plugins.compose)
@@ -23,6 +25,14 @@ kotlin {
2325
implementation(libs.coroutines.swing)
2426
}
2527
}
28+
29+
jvm {
30+
compilations.all {
31+
compilerOptions.configure {
32+
jvmTarget.set(JvmTarget.JVM_17)
33+
}
34+
}
35+
}
2636
}
2737

2838
compose {

gradle/libs.versions.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,33 @@
77

88
[versions]
99
library = "1.0.0-alpha04" # Keep at top
10-
activity = "1.10.1"
11-
android-core = "1.17.0"
12-
android-tools = "8.12.2"
13-
atomicfu = "0.29.0"
10+
activity = "1.13.0"
11+
android-core = "1.18.0"
12+
android-tools = "8.13.2"
13+
atomicfu = "0.31.0"
1414
auto-service = "1.1.1"
1515
binary-compatibility = "0.18.1"
16-
compose = "1.8.2"
17-
compose-bom = "2025.08.01"
16+
compose = "1.10.2"
17+
compose-bom = "2026.03.00"
1818
coroutines = "1.10.2"
1919
datetime = "0.7.1"
20-
dokka = "2.0.0"
21-
i18n4k = "0.11.0"
20+
dokka = "2.1.0"
21+
i18n4k = "0.11.1"
2222
immutable = "0.4.0"
23-
kaml = "0.93.0"
24-
kctfork = "0.8.0"
23+
kaml = "0.104.0"
24+
kctfork = "0.12.1"
2525
kommand = "2.3.0"
26-
kotlin = "2.2.10"
27-
ksp = "2.2.10-2.0.2"
28-
ktor = "3.2.3"
29-
ktorfit = "2.6.4"
30-
lifecycle-runtime-ktx = "2.9.2"
31-
publish = "0.34.0"
26+
kotlin = "2.3.10"
27+
ksp = "2.3.6"
28+
ktor = "3.4.1"
29+
ktorfit = "2.7.2"
30+
lifecycle-runtime-ktx = "2.10.0"
31+
publish = "0.36.0"
3232
semver = "3.0.0"
3333
serialization = "1.9.0"
34-
skie = "0.10.6"
34+
skie = "0.10.10"
3535
tooling = "1.8.2"
36-
versions = "0.52.0"
36+
versions = "0.53.0"
3737

3838
[libraries]
3939
activity = { group = "androidx.activity", name = "activity-ktx", version.ref = "activity" }

0 commit comments

Comments
 (0)