Skip to content

Commit cd2e813

Browse files
committed
Update to TestContainers 2.x
1 parent 2833562 commit cd2e813

File tree

3 files changed

+4
-27
lines changed

3 files changed

+4
-27
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Running S3Mock in unit tests is still supported by using [TestContainers](https:
155155
* Bump java version from 17 to 25
156156
* S3Mock will use the baseline Spring chooses to support.
157157
* The Docker container will run Java 25 LTS.
158+
* TestContainers from 1.x to 2.x
158159

159160
# CURRENT - 4.x - THIS VERSION IS UNDER ACTIVE DEVELOPMENT
160161
Version 4.x is JDK17 LTS bytecode compatible, with Docker and JUnit / direct Java integration.

pom.xml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
<aws-kotlin.version>1.5.95</aws-kotlin.version>
9090

9191
<commons-codec.version>1.20.0</commons-codec.version>
92-
<commons-compress.version>1.28.0</commons-compress.version>
9392
<httpclient.version>4.5.14</httpclient.version>
9493
<httpmime.version>4.5.14</httpmime.version>
9594
<httpcore.version>4.4.16</httpcore.version>
@@ -127,7 +126,7 @@
127126
<skipDocker>false</skipDocker>
128127
<sortpom-maven-plugin.version>4.0.0</sortpom-maven-plugin.version>
129128
<spring-boot.version>4.0.0-RC2</spring-boot.version>
130-
<testcontainers.version>1.21.3</testcontainers.version>
129+
<testcontainers.version>2.0.2</testcontainers.version>
131130
<testng.version>7.11.0</testng.version>
132131
<xmlunit-assertj3.version>2.11.0</xmlunit-assertj3.version>
133132
<spring-test-profiler.version>0.0.14</spring-test-profiler.version>
@@ -214,28 +213,9 @@
214213
</dependency>
215214
<dependency>
216215
<groupId>org.testcontainers</groupId>
217-
<artifactId>junit-jupiter</artifactId>
216+
<artifactId>testcontainers-bom</artifactId>
218217
<version>${testcontainers.version}</version>
219218
</dependency>
220-
<dependency>
221-
<groupId>org.testcontainers</groupId>
222-
<artifactId>testcontainers</artifactId>
223-
<version>${testcontainers.version}</version>
224-
<exclusions>
225-
<exclusion>
226-
<groupId>org.apache.commons</groupId>
227-
<artifactId>commons-compress</artifactId>
228-
</exclusion>
229-
</exclusions>
230-
</dependency>
231-
<dependency>
232-
<!-- Workaround: TestContainers does not regularly update their dependencies, and their commons-compress
233-
version contains multiple CVEs.
234-
See https://github.com/testcontainers/testcontainers-java/issues/8338-->
235-
<groupId>org.apache.commons</groupId>
236-
<artifactId>commons-compress</artifactId>
237-
<version>${commons-compress.version}</version>
238-
</dependency>
239219
<dependency>
240220
<groupId>commons-codec</groupId>
241221
<artifactId>commons-codec</artifactId>

testsupport/testcontainers/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
<groupId>org.jetbrains</groupId>
5757
<artifactId>annotations</artifactId>
5858
</dependency>
59-
<dependency>
60-
<groupId>org.apache.commons</groupId>
61-
<artifactId>commons-compress</artifactId>
62-
</dependency>
6359
<dependency>
6460
<groupId>org.jspecify</groupId>
6561
<artifactId>jspecify</artifactId>
@@ -76,7 +72,7 @@
7672
</dependency>
7773
<dependency>
7874
<groupId>org.testcontainers</groupId>
79-
<artifactId>junit-jupiter</artifactId>
75+
<artifactId>testcontainers-junit-jupiter</artifactId>
8076
<scope>test</scope>
8177
</dependency>
8278
<dependency>

0 commit comments

Comments
 (0)