Skip to content

Commit 359df69

Browse files
committed
chore: configure JUnit5 dependencies
1 parent be64855 commit 359df69

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
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 {

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ dependencies {
126126

127127
jarFileTestCompileOnly "org.projectlombok:lombok:${lombok.version}"
128128
jarFileTestAnnotationProcessor "org.projectlombok:lombok:${lombok.version}"
129-
jarFileTestImplementation 'junit:junit:4.13.2'
129+
jarFileTestImplementation(project(":junit-jupiter"))
130130
jarFileTestImplementation 'org.assertj:assertj-core:3.26.3'
131131
jarFileTestImplementation 'org.ow2.asm:asm-debug-all:5.2'
132132
}

modules/jdbc-test/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
dependencies {
22
api project(':jdbc')
33

4+
api platform("org.junit:junit-bom:5.13.0")
5+
api 'org.junit.jupiter:junit-jupiter'
6+
47
api 'com.google.guava:guava:33.3.1-jre'
58
api 'org.apache.commons:commons-lang3:3.17.0'
69
api 'com.zaxxer:HikariCP-java6:2.3.13'

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 {

modules/r2dbc/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ dependencies {
1414

1515
testFixturesImplementation 'io.projectreactor:reactor-core:3.6.10'
1616
testFixturesImplementation 'org.assertj:assertj-core:3.26.3'
17+
testFixturesImplementation platform("org.junit:junit-bom:5.13.0")
18+
testFixturesImplementation 'org.junit.jupiter:junit-jupiter'
1719
}

0 commit comments

Comments
 (0)