Skip to content

Commit a341a13

Browse files
committed
Introduce a Gradle version catalog
Move all dependency versions to libs.versions.toml.
1 parent 80bfde1 commit a341a13

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
plugins {
2-
kotlin("jvm") version "2.2.10"
3-
id("org.jetbrains.kotlinx.kover") version "0.9.1"
2+
alias(libs.plugins.kotlin.jvm)
3+
alias(libs.plugins.kotlinx.kover)
44
}
55

66
repositories {
77
mavenCentral()
88
}
99

1010
dependencies {
11-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
11+
implementation(libs.kotlinx.coroutines.core)
1212

1313
// for tapSystemOut
14-
testImplementation("com.github.stefanbirkner:system-lambda:1.2.1")
15-
testImplementation("io.kotest:kotest-runner-junit5:6.0.0")
16-
testImplementation("io.kotest:kotest-assertions-table:6.0.0")
17-
testRuntimeOnly("ch.qos.logback:logback-classic:1.5.18")
14+
testImplementation(libs.system.lambda)
15+
testImplementation(libs.kotest.runner.junit5)
16+
testImplementation(libs.kotest.assertions.table)
17+
testRuntimeOnly(libs.logback.classic)
1818
}
1919

2020
java {

gradle/libs.versions.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[versions]
2+
kotest = "6.0.0"
3+
kotlin = "2.2.10"
4+
kotlinx-coroutines = "1.10.2"
5+
kover = "0.9.1"
6+
logback = "1.5.18"
7+
system-lambda = "1.2.1"
8+
9+
[libraries]
10+
kotest-assertions-table = { module = "io.kotest:kotest-assertions-table", version.ref = "kotest" }
11+
kotest-runner-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
12+
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
13+
logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
14+
system-lambda = { module = "com.github.stefanbirkner:system-lambda", version.ref = "system-lambda" }
15+
16+
[plugins]
17+
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
18+
kotlinx-kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }

0 commit comments

Comments
 (0)