Merge pull request #35119 from quaff

* pr/35119:
  Polish "Fix dependency management for spring-boot-testcontainers"
  Fix dependency management for spring-boot-testcontainers

Closes gh-35119
This commit is contained in:
Stephane Nicoll
2023-04-25 10:09:50 +02:00
5 changed files with 1 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ description = "Spring Boot Testcontainers Support"
dependencies {
api(project(":spring-boot-project:spring-boot-autoconfigure"))
api("org.testcontainers:testcontainers")
optional("org.springframework:spring-test")
optional("org.springframework.data:spring-data-mongodb")

View File

@@ -8,7 +8,6 @@ description = "Spring Boot Actuator ActiveMQ smoke test"
dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-activemq"))
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
testImplementation(project(":spring-boot-project:spring-boot-testcontainers"))

View File

@@ -61,7 +61,6 @@ dependencies {
redisTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
redisTestImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
redisTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
redisTestImplementation("org.testcontainers:testcontainers")
redisTestImplementation("org.testcontainers:junit-jupiter")
}

View File

@@ -13,7 +13,6 @@ dependencies {
implementation("org.springframework.session:spring-session-data-mongodb")
testImplementation("org.testcontainers:mongodb")
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))

View File

@@ -12,7 +12,6 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
implementation("org.springframework.session:spring-session-data-redis")
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))