Skip to content

Commit fff5149

Browse files
wilkinsonaphilwebb
authored andcommitted
Move code out of testcontainers-all into relevant modules
1 parent 2a044bc commit fff5149

File tree

30 files changed

+95
-103
lines changed

30 files changed

+95
-103
lines changed

settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ include "spring-boot-project:spring-boot-sql"
146146
include "spring-boot-project:spring-boot-test"
147147
include "spring-boot-project:spring-boot-test-autoconfigure"
148148
include "spring-boot-project:spring-boot-testcontainers"
149-
include "spring-boot-project:spring-boot-testcontainers-all"
150149
include "spring-boot-project:spring-boot-thymeleaf"
151150
include "spring-boot-project:spring-boot-tomcat"
152151
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
@@ -2133,7 +2133,6 @@ bom {
21332133
"spring-boot-test",
21342134
"spring-boot-test-autoconfigure",
21352135
"spring-boot-testcontainers",
2136-
"spring-boot-testcontainers-all",
21372136
"spring-boot-thymeleaf",
21382137
"spring-boot-tomcat",
21392138
"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
@@ -274,7 +274,7 @@ dependencies {
274274
implementation(project(path: ":spring-boot-project:spring-boot-security"))
275275
implementation(project(path: ":spring-boot-project:spring-boot-test"))
276276
implementation(project(path: ":spring-boot-project:spring-boot-test-autoconfigure"))
277-
implementation(project(path: ":spring-boot-project:spring-boot-testcontainers-all"))
277+
implementation(project(path: ":spring-boot-project:spring-boot-testcontainers"))
278278
implementation(project(path: ":spring-boot-project:spring-boot-tomcat"))
279279
implementation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-cli"))
280280
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
@@ -21,6 +21,7 @@ plugins {
2121
id "org.springframework.boot.auto-configuration"
2222
id "org.springframework.boot.configuration-properties"
2323
id "org.springframework.boot.deployed"
24+
id "org.springframework.boot.docker-test"
2425
id "org.springframework.boot.optional-dependencies"
2526
}
2627

@@ -34,6 +35,7 @@ dependencies {
3435
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
3536
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
3637
optional(project(":spring-boot-project:spring-boot-opentelemetry"))
38+
optional(project(":spring-boot-project:spring-boot-testcontainers"))
3739
optional("ch.qos.logback:logback-classic")
3840
optional("io.micrometer:micrometer-java21")
3941
optional("io.micrometer:micrometer-registry-appoptics")
@@ -60,6 +62,11 @@ dependencies {
6062
optional("org.apache.kafka:kafka-streams")
6163
optional("org.apache.logging.log4j:log4j-core")
6264
optional("org.aspectj:aspectjweaver")
65+
optional("org.testcontainers:grafana")
66+
67+
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
68+
dockerTestImplementation("io.rest-assured:rest-assured")
69+
dockerTestImplementation("org.testcontainers:junit-jupiter")
6370

6471
testFixturesImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
6572
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)