Skip to content

Commit 183a0fb

Browse files
wilkinsonaphilwebb
authored andcommitted
Move code out of testcontainers-all into relevant modules
1 parent fb886a1 commit 183a0fb

File tree

30 files changed

+95
-86
lines changed

30 files changed

+95
-86
lines changed

settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ include "spring-boot-project:spring-boot-sql"
130130
include "spring-boot-project:spring-boot-test"
131131
include "spring-boot-project:spring-boot-test-autoconfigure"
132132
include "spring-boot-project:spring-boot-testcontainers"
133-
include "spring-boot-project:spring-boot-testcontainers-all"
134133
include "spring-boot-project:spring-boot-thymeleaf"
135134
include "spring-boot-project:spring-boot-tomcat"
136135
include "spring-boot-project:spring-boot-tools:spring-boot-antlib"

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,6 @@ bom {
21242124
"spring-boot-test",
21252125
"spring-boot-test-autoconfigure",
21262126
"spring-boot-testcontainers",
2127-
"spring-boot-testcontainers-all",
21282127
"spring-boot-thymeleaf",
21292128
"spring-boot-tomcat",
21302129
"spring-boot-tracing",

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ dependencies {
258258
implementation(project(path: ":spring-boot-project:spring-boot-security"))
259259
implementation(project(path: ":spring-boot-project:spring-boot-test"))
260260
implementation(project(path: ":spring-boot-project:spring-boot-test-autoconfigure"))
261-
implementation(project(path: ":spring-boot-project:spring-boot-testcontainers-all"))
261+
implementation(project(path: ":spring-boot-project:spring-boot-testcontainers"))
262262
implementation(project(path: ":spring-boot-project:spring-boot-tomcat"))
263263
implementation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-cli"))
264264
implementation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))

spring-boot-project/spring-boot-metrics/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id "org.springframework.boot.auto-configuration"
55
id "org.springframework.boot.configuration-properties"
66
id "org.springframework.boot.deployed"
7+
id "org.springframework.boot.docker-test"
78
id "org.springframework.boot.optional-dependencies"
89
}
910

@@ -17,6 +18,7 @@ dependencies {
1718
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
1819
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
1920
optional(project(":spring-boot-project:spring-boot-opentelemetry"))
21+
optional(project(":spring-boot-project:spring-boot-testcontainers"))
2022
optional("ch.qos.logback:logback-classic")
2123
optional("io.micrometer:micrometer-java21")
2224
optional("io.micrometer:micrometer-registry-appoptics")
@@ -43,6 +45,11 @@ dependencies {
4345
optional("org.apache.kafka:kafka-streams")
4446
optional("org.apache.logging.log4j:log4j-core")
4547
optional("org.aspectj:aspectjweaver")
48+
optional("org.testcontainers:grafana")
49+
50+
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
51+
dockerTestImplementation("io.rest-assured:rest-assured")
52+
dockerTestImplementation("org.testcontainers:junit-jupiter")
4653

4754
testFixturesImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
4855
testImplementation(project(":spring-boot-project:spring-boot-test"))
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.testcontainers.service.connection.otlp;
17+
package org.springframework.boot.metrics.testcontainers.otlp;
1818

1919
import java.time.Duration;
2020

Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.testcontainers.service.connection.otlp;
17+
package org.springframework.boot.metrics.testcontainers.otlp;
1818

1919
import java.time.Duration;
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.testcontainers.service.connection.otlp;
17+
package org.springframework.boot.metrics.testcontainers.otlp;
1818

1919
import org.testcontainers.grafana.LgtmStackContainer;
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.testcontainers.service.connection.otlp;
17+
package org.springframework.boot.metrics.testcontainers.otlp;
1818

1919
import org.testcontainers.containers.Container;
2020
import org.testcontainers.containers.GenericContainer;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Support for testcontainers OpenTelemetry service connections.
18+
* Support for Testcontainers OpenTelemetry metrics service connections.
1919
*/
20-
package org.springframework.boot.testcontainers.service.connection.otlp;
20+
package org.springframework.boot.metrics.testcontainers.otlp;

0 commit comments

Comments
 (0)