Skip to content

Commit 34f9efe

Browse files
committed
Fix junit by aligning platform launcher
1 parent 0c38708 commit 34f9efe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ subprojects {
157157
dependencies {
158158
api platform(projects.spockBom)
159159
implementation(project.name == "spock-gradle" ? [] : groovylibs.groovy)
160+
testImplementation(platform(libs.junit.bom))
161+
testImplementation(libs.junit.platform.launcher)
160162
}
161163

162164
configureJavadoc(tasks.named("javadoc"))

gradle/libs.versions.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ mockito4 = { module = "org.mockito:mockito-core", version.ref = "mockito4" }
2727
mockito4inline = { module = "org.mockito:mockito-inline", version.ref = "mockito4" }
2828
mockito5 = { module = "org.mockito:mockito-core", version.ref = "mockito5" }
2929
objenesis = "org.objenesis:objenesis:3.4"
30-
# This needs a classifier, but is has to be specified on the usage end https://melix.github.io/blog/2021/03/version-catalogs-faq.html#_why_can_t_i_use_excludes_or_classifiers
30+
# This needs a classifier, but it has to be specified on the usage end https://melix.github.io/blog/2021/03/version-catalogs-faq.html#_why_can_t_i_use_excludes_or_classifiers
3131
jacoco-agent = { module = "org.jacoco:org.jacoco.agent", version.ref = "jacoco" }
3232
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
3333
# to omit the version we have to use this syntax, the version is managed by the junit-bom
3434
junit-jupiter.module = "org.junit.jupiter:junit-jupiter"
35-
junit-platform-testkit.module = "org.junit.platform:junit-platform-testkit"
3635
junit-platform-console.module = "org.junit.platform:junit-platform-console"
36+
junit-platform-launcher.module = "org.junit.platform:junit-platform-launcher"
37+
junit-platform-testkit.module = "org.junit.platform:junit-platform-testkit"
3738
workflows-kotlin-compiler = { module = "org.jetbrains.kotlin:kotlin-compiler", version.ref = "workflows-kotlin" }
3839
workflows-kotlin-compilerEmbeddable = { module = "org.jetbrains.kotlin:kotlin-compiler-embeddable", version.ref = "workflows-kotlin" }
3940
workflows-kotlin-mainKts = { module = "org.jetbrains.kotlin:kotlin-main-kts", version.ref = "workflows-kotlin" }

0 commit comments

Comments
 (0)