Skip to content

Commit 093802b

Browse files
authored
feat: setup dependencies to use JUnit bom (#29)
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
1 parent d59117d commit 093802b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

buildSrc/src/main/kotlin/docling-java-shared.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ dependencies {
6767
api(libs.findLibrary("jspecify").get())
6868

6969
// These dependencies are used internally, and not exposed to consumers on their own compile classpath.
70-
// implementation(libs.guava)
71-
72-
testImplementation(libs.findBundle("junit.jupiter").get())
70+
testImplementation(platform(libs.findLibrary("junit.bom").get()))
71+
testImplementation(libs.findLibrary("junit.jupiter").get())
7372
testImplementation(libs.findBundle("assertj").get())
74-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
73+
testRuntimeOnly(libs.findLibrary("junit.platform").get())
7574
}
7675

7776
tasks.withType<Test> {

gradle/libs.versions.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
[versions]
2-
junit-jupiter = "6.0.0"
2+
junit = "6.0.0"
33
assertj = "3.27.6"
44
jackson = "3.0.1"
55
jspecify = "1.0.0"
66
testcontainers = "2.0.1"
77

88
[libraries]
9-
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
9+
junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" }
10+
junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter" }
11+
junit-platform = { group = "org.junit.platform", name = "junit-platform-launcher" }
1012
assertj-core = { group = "org.assertj", name = "assertj-core", version.ref = "assertj" }
1113
jackson-bom = { group = "tools.jackson", name = "jackson-bom", version.ref = "jackson" }
1214
jspecify = { group = "org.jspecify", name = "jspecify", version.ref = "jspecify" }
1315
testcontainers-bom = { group = "org.testcontainers", name = "testcontainers-bom", version.ref = "testcontainers"}
1416

1517
[bundles]
1618
assertj = ["assertj-core"]
17-
junit-jupiter = ["junit-jupiter"]

testing/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
}
44

55
dependencies {
6-
api(libs.bundles.junit.jupiter)
6+
api(platform(libs.junit.bom))
7+
api(libs.junit.jupiter)
78
api(libs.bundles.assertj)
89
}

0 commit comments

Comments
 (0)