Skip to content

Commit 5c8461b

Browse files
committed
chore: configure JUnit5 dependencies
1 parent be64855 commit 5c8461b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ subprojects {
105105
}
106106
}
107107

108-
tasks.withType(Test).all {
108+
tasks.withType(Test).configureEach {
109+
useJUnitPlatform()
109110
reports {
110111
junitXml.outputPerTestCase = true
111112
}
@@ -132,6 +133,10 @@ subprojects {
132133

133134
dependencies {
134135
testImplementation 'ch.qos.logback:logback-classic:1.3.14'
136+
testImplementation(platform("org.junit:junit-bom:5.13.0"))
137+
testImplementation(project(":junit-jupiter"))
138+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
139+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
135140
}
136141

137142
checkstyle {

modules/junit-jupiter/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ description = "Testcontainers :: JUnit Jupiter Extension"
22

33
dependencies {
44
api project(':testcontainers')
5-
implementation platform('org.junit:junit-bom:5.13.0')
6-
implementation 'org.junit.jupiter:junit-jupiter-api'
5+
api platform('org.junit:junit-bom:5.13.0')
6+
api 'org.junit.jupiter:junit-jupiter'
77

88
testImplementation project(':mysql')
99
testImplementation project(':postgresql')
@@ -18,6 +18,8 @@ dependencies {
1818

1919
testRuntimeOnly 'org.postgresql:postgresql:42.7.4'
2020
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'
21+
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
22+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
2123
}
2224

2325
test {

0 commit comments

Comments
 (0)