Skip to content

Commit 29dd362

Browse files
authored
Merge pull request #285 from ProjectMapK/junit5
Update JUnit5
2 parents 0566686 + 3b2c793 commit 29dd362

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ dependencies {
3232
api(libs.jackson.annotations)
3333

3434
// test libs
35-
testImplementation("${libs.kotlin.reflect.get()}:${kotlinVersion}")
36-
testImplementation(libs.junit.api)
37-
testImplementation(libs.junit.params)
38-
testRuntimeOnly(libs.junit.engine)
35+
testImplementation(platform(libs.junit.bom))
36+
testImplementation("org.junit.jupiter:junit-jupiter")
37+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
38+
3939
testImplementation(libs.mockk)
4040

41+
testImplementation("${libs.kotlin.reflect.get()}:${kotlinVersion}")
4142
testImplementation(libs.jackson.xml)
4243
testImplementation(libs.jackson.jsr310)
4344
}

gradle/libs.versions.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kotlin = "1.9.25" # Mainly for CI, it can be rewritten by environment variable.
33
jackson = "2.18.3"
44

55
# test libs
6-
junit = "5.11.4"
6+
junit = "5.12.1"
77

88
[libraries]
99
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib" }
@@ -13,9 +13,7 @@ jackson-annotations = { module = "com.fasterxml.jackson.core:jackson-annotations
1313

1414
# test libs
1515
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect" }
16-
junit-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" }
17-
junit-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit" }
18-
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit" }
16+
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
1917
mockk = "io.mockk:mockk:1.13.17"
2018
jackson-xml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-xml", version.ref = "jackson" }
2119
jackson-jsr310 = { module = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", version.ref = "jackson" }

0 commit comments

Comments
 (0)