Skip to content

Commit aae8c62

Browse files
committed
Update JUnit dependencies to use BOM and add launcher
1 parent 22ef9c9 commit aae8c62

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ subprojects {
5050
testImplementation(kotlin("test"))
5151
if (project !in springBootProjects) {
5252
testImplementation(kotlin("test"))
53+
testImplementation(platform(catalog.junit.bom))
5354
testImplementation(catalog.junit.api)
55+
testRuntimeOnly(catalog.junit.launcher)
5456
testRuntimeOnly(catalog.junit.engine)
5557
}
5658
}

gradle/libs.versions.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ thymeleaf-layout-dialect = { module = "nz.net.ultraq.thymeleaf:thymeleaf-layout-
6565
webjars-jquery = { module = "org.webjars:jquery", version = "3.7.1" }
6666
webjars-locator = { module = "org.webjars:webjars-locator", version = "0.52" }
6767

68-
junit-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" }
69-
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit" }
68+
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
69+
junit-api = { module = "org.junit.jupiter:junit-jupiter-api" }
70+
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
71+
junit-launcher = { module = "org.junit.platform:junit-platform-launcher" }
7072
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
7173

7274
[plugins]

0 commit comments

Comments
 (0)