Skip to content

Commit f9584c9

Browse files
authored
Merge pull request #37 from hossain-khan/copilot/fix-36
Centralize all dependencies in version catalog
2 parents 32db3d0 + dba56d8 commit f9584c9

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

benchmark/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ dependencies {
1313
implementation(libs.bundles.kotlinxEcosystem)
1414

1515
// External JSON5 library for comparison
16-
implementation("at.syntaxerror:json5:2.1.0")
16+
implementation(libs.syntaxerrorJson5)
1717

1818
// Test dependencies
1919
testImplementation(kotlin("test"))
20-
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
20+
testImplementation(libs.junit)
2121
}
2222

2323
application {

gradle/libs.versions.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,29 @@ kotlinxDatetime = "0.6.1"
88
kotlinxSerializationJSON = "1.7.3"
99
kotlinxCoroutines = "1.9.0"
1010
kotlinxKover = "0.9.1"
11+
junit = "5.10.1"
12+
kotest = "5.8.0"
13+
syntaxerrorJson5 = "2.1.0"
1114

1215
[libraries]
1316
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
1417
kotlinxDatetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinxDatetime" }
1518
kotlinxSerialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationJSON" }
1619
kotlinxCoroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }
1720

21+
# Testing libraries
22+
junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
23+
kotestRunner = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
24+
kotestAssertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
25+
kotestProperty = { module = "io.kotest:kotest-property", version.ref = "kotest" }
26+
27+
# External libraries
28+
syntaxerrorJson5 = { module = "at.syntaxerror:json5", version.ref = "syntaxerrorJson5" }
29+
1830
# Libraries can be bundled together for easier import
1931
[bundles]
2032
kotlinxEcosystem = ["kotlinxDatetime", "kotlinxSerialization", "kotlinxCoroutines"]
33+
testing = ["junit", "kotestRunner", "kotestAssertions", "kotestProperty"]
2134

2235
[plugins]
2336
kotlinPluginSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

lib/build.gradle.kts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ dependencies {
1111

1212
// Test dependencies
1313
testImplementation(kotlin("test"))
14-
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
15-
testImplementation("io.kotest:kotest-runner-junit5:5.8.0")
16-
testImplementation("io.kotest:kotest-assertions-core:5.8.0")
17-
18-
// For property-based testing if needed
19-
testImplementation("io.kotest:kotest-property:5.8.0")
14+
testImplementation(libs.bundles.testing)
2015
}
2116

2217
tasks.test {

0 commit comments

Comments
 (0)