Update spring-boot-smoke-test-kafka to use docker-test plugin

See gh-41228
This commit is contained in:
Andy Wilkinson 2024-06-26 10:49:16 +01:00
parent 957e73044b
commit bc57d30a1f
2 changed files with 8 additions and 4 deletions

View File

@ -1,20 +1,24 @@
plugins { plugins {
id "java" id "java"
id "org.springframework.boot.conventions" id "org.springframework.boot.conventions"
id "org.springframework.boot.docker-test"
} }
description = "Spring Boot Kafka smoke test" description = "Spring Boot Kafka smoke test"
dependencies { dependencies {
dockerTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
dockerTestImplementation("org.awaitility:awaitility")
dockerTestImplementation("org.testcontainers:junit-jupiter")
dockerTestImplementation("org.testcontainers:kafka")
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-json")) implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-json"))
implementation("org.springframework.kafka:spring-kafka") implementation("org.springframework.kafka:spring-kafka")
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test")) testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation("org.awaitility:awaitility") testImplementation("org.awaitility:awaitility")
testImplementation("org.springframework.kafka:spring-kafka-test") { testImplementation("org.springframework.kafka:spring-kafka-test") {
exclude group: "commons-logging", module: "commons-logging" exclude group: "commons-logging", module: "commons-logging"
} }
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:kafka")
} }