Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 40144b1

Browse files
committed
Version catalog
1 parent 878d2e6 commit 40144b1

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

build.gradle.kts

+8-7
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ buildscript {
66
}
77
}
88

9+
@Suppress("DSL_SCOPE_VIOLATION")
910
plugins {
10-
kotlin("multiplatform").version("1.6.0")
11-
id("io.kotest.multiplatform") version "5.3.1"
11+
alias(libs.plugins.kotlin.multiplatform)
12+
alias(libs.plugins.kotest.multiplatform)
1213
}
1314

1415
repositories {
@@ -31,15 +32,15 @@ kotlin {
3132
sourceSets {
3233
val jsMain by getting {
3334
dependencies {
34-
implementation("io.ktor:ktor-client-js:2.0.2")
35+
implementation(libs.ktor.client.js)
3536
}
3637
}
3738
val jsTest by getting {
3839
dependencies {
39-
implementation("io.kotest:kotest-assertions-core:5.3.1")
40-
implementation("io.kotest:kotest-framework-engine:5.3.0")
41-
implementation("io.kotest:kotest-framework-datatest:5.3.1")
42-
implementation("io.kotest:kotest-property:5.3.0")
40+
implementation(libs.kotest.assertions.core)
41+
implementation(libs.kotest.framework.engine)
42+
implementation(libs.kotest.framework.datatest)
43+
implementation(libs.kotest.property)
4344
}
4445
}
4546
}

gradle/libs.versions.toml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[versions]
2+
kotlin = "1.6.0"
3+
kotest = "5.3.1"
4+
5+
[libraries]
6+
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
7+
kotest-framework-engine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
8+
kotest-framework-datatest = { module = "io.kotest:kotest-framework-datatest", version.ref = "kotest" }
9+
kotest-property = { module = "io.kotest:kotest-property", version.ref = "kotest" }
10+
11+
ktor-client-js = { module = "io.ktor:ktor-client-js", version = "2.0.2" }
12+
13+
[plugins]
14+
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
15+
kotest-multiplatform = { id = "io.kotest.multiplatform", version.ref = "kotest" }

0 commit comments

Comments
 (0)