Skip to content

Commit d33b291

Browse files
committed
Fix breaking changes from testcontainers 2.0.0 upgrade
- Update testcontainers-bom version from 1.21.3 to 2.0.0 - Change module artifact names from 'kafka' to 'testcontainers-kafka' The testcontainers 2.0.0 major version introduced breaking changes: - Module artifact names now use 'testcontainers-' prefix - Removed version specifications where using BOM Based on changes from opentelemetry-java-instrumentation PR #14985
1 parent 587cf71 commit d33b291

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ val DEPENDENCY_BOMS = listOf(
2424
"com.azure:azure-sdk-bom:1.3.0",
2525
"io.netty:netty-bom:4.2.6.Final",
2626
"org.junit:junit-bom:5.13.4",
27-
"org.testcontainers:testcontainers-bom:1.21.3",
27+
"org.testcontainers:testcontainers-bom:2.0.0",
2828
)
2929

3030
val autoServiceVersion = "1.1.1"

smoke-tests/apps/Kafka/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ dependencies {
77
implementation("org.springframework.kafka:spring-kafka:2.3.1.RELEASE")
88
implementation("com.fasterxml.jackson.core:jackson-databind:2.10.0")
99
implementation("org.apache.httpcomponents:httpclient:4.5.13")
10-
implementation("org.testcontainers:kafka:1.17.3")
10+
implementation("org.springframework.kafka:spring-kafka:2.6.2")
11+
implementation("org.testcontainers:testcontainers-kafka")
1112
}

smoke-tests/apps/SpringCloudStream/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ dependencies {
99
implementation("org.springframework.cloud:spring-cloud-starter-stream-kafka:2.2.1.RELEASE")
1010
implementation("org.springframework.kafka:spring-kafka:2.3.1.RELEASE")
1111
implementation("org.springframework:spring-tx:5.2.0.RELEASE")
12-
implementation("org.testcontainers:kafka:1.17.3")
12+
implementation("org.springframework.cloud:spring-cloud-stream-binder-kafka:3.1.2")
13+
implementation("org.testcontainers:testcontainers-kafka")
1314
}

0 commit comments

Comments
 (0)