Skip to content

Commit 7317fa2

Browse files
authored
Centralize junit jupiter and assertj dependencies (#11067)
1 parent 559df36 commit 7317fa2

File tree

62 files changed

+6
-481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6
-481
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ subprojects {
8989
}
9090

9191
test {
92+
useJUnitPlatform()
93+
9294
defaultCharacterEncoding = "UTF-8"
9395
testLogging {
9496
displayGranularity 1
@@ -133,6 +135,10 @@ subprojects {
133135

134136
dependencies {
135137
testImplementation 'ch.qos.logback:logback-classic:1.3.15'
138+
testImplementation 'org.assertj:assertj-core:3.27.4'
139+
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
140+
141+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
136142
}
137143

138144
checkstyle {

modules/activemq/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ description = "Testcontainers :: ActiveMQ"
33
dependencies {
44
api project(':testcontainers')
55

6-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
7-
8-
testImplementation 'org.assertj:assertj-core:3.27.4'
9-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
106
testImplementation "org.apache.activemq:activemq-client:6.1.7"
117
testImplementation "org.apache.activemq:artemis-jakarta-client:2.42.0"
128
}
13-
14-
test {
15-
useJUnitPlatform()
16-
}

modules/azure/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ dependencies {
66
// TODO use JDK's HTTP client and/or Apache HttpClient5
77
shaded 'com.squareup.okhttp3:okhttp:5.1.0'
88

9-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
10-
11-
testImplementation 'org.assertj:assertj-core:3.27.4'
12-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
139
testImplementation platform("com.azure:azure-sdk-bom:1.2.32")
1410
testImplementation 'com.azure:azure-cosmos'
1511
testImplementation 'com.azure:azure-storage-blob'
@@ -19,7 +15,3 @@ dependencies {
1915
testImplementation 'com.azure:azure-messaging-servicebus'
2016
testImplementation 'com.microsoft.sqlserver:mssql-jdbc:13.2.0.jre8'
2117
}
22-
23-
test {
24-
useJUnitPlatform()
25-
}

modules/cassandra/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,5 @@ dependencies {
1010
api project(":testcontainers-database-commons")
1111
api "com.datastax.cassandra:cassandra-driver-core:3.10.0"
1212

13-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
14-
15-
testImplementation 'org.assertj:assertj-core:3.27.4'
16-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
17-
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.13.4'
1813
testImplementation 'com.datastax.oss:java-driver-core:4.17.0'
1914
}
20-
21-
test {
22-
useJUnitPlatform()
23-
}

modules/chromadb/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,5 @@ description = "Testcontainers :: ChromaDB"
33
dependencies {
44
api project(':testcontainers')
55

6-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
7-
8-
testImplementation 'org.assertj:assertj-core:3.27.4'
9-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
106
testImplementation 'io.rest-assured:rest-assured:5.5.6'
117
}
12-
13-
test {
14-
useJUnitPlatform()
15-
}

modules/clickhouse/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@ dependencies {
1010
testImplementation project(':testcontainers-jdbc-test')
1111
testRuntimeOnly(group: 'com.clickhouse', name: 'clickhouse-jdbc', version: '0.9.1', classifier: 'all')
1212

13-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
14-
15-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
16-
testImplementation 'org.assertj:assertj-core:3.27.4'
1713
testImplementation 'com.clickhouse:client-v2:0.9.1'
1814
testImplementation testFixtures(project(':testcontainers-r2dbc'))
1915
testRuntimeOnly(group: 'com.clickhouse', name: 'clickhouse-r2dbc', version: '0.9.1', classifier: 'http')
2016
}
21-
22-
test {
23-
useJUnitPlatform()
24-
}

modules/cockroachdb/build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,12 @@ dependencies {
44
api project(':testcontainers-jdbc')
55

66
testRuntimeOnly 'org.postgresql:postgresql:42.7.7'
7-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
87

9-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
108
testImplementation project(':testcontainers-jdbc-test')
11-
testImplementation 'org.assertj:assertj-core:3.27.4'
129
}
1310

1411
tasks.japicmp {
1512
classExcludes = [
1613
"org.testcontainers.containers.CockroachContainer"
1714
]
1815
}
19-
20-
test {
21-
useJUnitPlatform()
22-
}

modules/consul/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ description = "Testcontainers :: Consul"
33
dependencies {
44
api project(':testcontainers')
55

6-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
7-
8-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
96
testImplementation 'com.ecwid.consul:consul-api:1.4.5'
107
testImplementation 'io.rest-assured:rest-assured:5.5.6'
11-
testImplementation 'org.assertj:assertj-core:3.27.4'
12-
}
13-
14-
test {
15-
useJUnitPlatform()
168
}

modules/couchbase/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,12 @@ dependencies {
55
// TODO use JDK's HTTP client and/or Apache HttpClient5
66
shaded 'com.squareup.okhttp3:okhttp:5.1.0'
77

8-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
9-
10-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
118
testImplementation 'com.couchbase.client:java-client:3.9.0'
129
testImplementation 'org.awaitility:awaitility:4.3.0'
13-
testImplementation 'org.assertj:assertj-core:3.27.4'
1410
}
1511

1612
tasks.japicmp {
1713
classExcludes = [
1814
"org.testcontainers.couchbase.CouchbaseContainer"
1915
]
2016
}
21-
22-
test {
23-
useJUnitPlatform()
24-
}

modules/cratedb/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ dependencies {
44
api project(':testcontainers-jdbc')
55

66
testRuntimeOnly 'org.postgresql:postgresql:42.7.7'
7-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
87

9-
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
108
testImplementation project(':testcontainers-jdbc-test')
119

1210
compileOnly 'org.jetbrains:annotations:26.0.2'
1311
}
14-
15-
test {
16-
useJUnitPlatform()
17-
}

0 commit comments

Comments
 (0)