Skip to content

Commit 0f0d26f

Browse files
authored
Move dependencies to Gradle version catalog (#27)
1 parent c67a8ad commit 0f0d26f

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

composeApp/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
alias(libs.plugins.kotlinMultiplatform)
77
alias(libs.plugins.composeCompiler)
88
alias(libs.plugins.jetbrainsCompose)
9-
kotlin("plugin.serialization") version "2.0.21"
9+
alias(libs.plugins.kotlinxSerialization)
1010
}
1111

1212
kotlin {
@@ -32,15 +32,15 @@ kotlin {
3232
sourceSets {
3333
val wasmJsMain by getting {
3434
dependencies {
35-
implementation("io.ktor:ktor-client-js:3.2.0")
35+
implementation(libs.ktor.client.js)
3636
}
3737
}
3838

3939
val desktopMain by getting {
4040
dependencies {
4141
implementation(compose.desktop.currentOs)
4242
implementation(libs.kotlinx.coroutines.swing)
43-
implementation("io.ktor:ktor-client-cio:3.0.0")
43+
implementation(libs.ktor.client.cio)
4444
}
4545
}
4646

@@ -51,8 +51,8 @@ kotlin {
5151
implementation(compose.ui)
5252
implementation(compose.components.resources)
5353
implementation(compose.components.uiToolingPreview)
54-
implementation("io.ktor:ktor-client-core:3.2.0")
55-
implementation("com.charleskorn.kaml:kaml:0.61.0")
54+
implementation(libs.ktor.client.core)
55+
implementation(libs.kaml)
5656
}
5757
}
5858
}

gradle/libs.versions.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ compose-plugin = "1.7.0"
44
junit = "4.13.2"
55
kotlin = "2.0.21"
66
kotlinx-coroutines = "1.9.0"
7+
ktor = "3.0.0"
8+
kaml = "0.61.0"
79

810
[libraries]
911
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
@@ -12,8 +14,14 @@ junit = { group = "junit", name = "junit", version.ref = "junit" }
1214
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
1315
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }
1416
kotlinx-coroutines-swing = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-swing", version.ref = "kotlinx-coroutines" }
17+
ktor-client-core = { group = "io.ktor", name = "ktor-client-core", version.ref = "ktor" }
18+
ktor-client-js = { group = "io.ktor", name = "ktor-client-js", version.ref = "ktor" }
19+
ktor-client-cio = { group = "io.ktor", name = "ktor-client-cio", version.ref = "ktor" }
20+
kaml = { group = "com.charleskorn.kaml", name = "kaml", version.ref = "kaml" }
1521

1622
[plugins]
1723
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
1824
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
19-
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
25+
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
26+
kotlinxSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
27+

0 commit comments

Comments
 (0)