Skip to content

Commit 0e66745

Browse files
committed
Move code from docker-compose-all into relevant modules
1 parent 5a2f3f4 commit 0e66745

File tree

28 files changed

+75
-95
lines changed

28 files changed

+75
-95
lines changed

settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ include "spring-boot-project:spring-boot-data-rest"
6969
include "spring-boot-project:spring-boot-dependencies"
7070
include "spring-boot-project:spring-boot-devtools"
7171
include "spring-boot-project:spring-boot-docker-compose"
72-
include "spring-boot-project:spring-boot-docker-compose-all"
7372
include "spring-boot-project:spring-boot-docs"
7473
include "spring-boot-project:spring-boot-elasticsearch"
7574
include "spring-boot-project:spring-boot-flyway"

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,6 @@ bom {
20052005
"spring-boot-data-rest",
20062006
"spring-boot-devtools",
20072007
"spring-boot-docker-compose",
2008-
"spring-boot-docker-compose-all",
20092008
"spring-boot-elasticsearch",
20102009
"spring-boot-flyway",
20112010
"spring-boot-freemarker",

spring-boot-project/spring-boot-docker-compose-all/build.gradle

Lines changed: 0 additions & 72 deletions
This file was deleted.

spring-boot-project/spring-boot-docker-compose-all/src/main/resources/META-INF/spring.factories

Lines changed: 0 additions & 5 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ dependencies {
241241
implementation(project(path: ":spring-boot-project:spring-boot-data-neo4j"))
242242
implementation(project(path: ":spring-boot-project:spring-boot-devtools"))
243243
implementation(project(path: ":spring-boot-project:spring-boot-docker-compose"))
244-
implementation(project(path: ":spring-boot-project:spring-boot-docker-compose-all"))
245244
implementation(project(path: ":spring-boot-project:spring-boot-http-converter"))
246245
implementation(project(path: ":spring-boot-project:spring-boot-http-codec"))
247246
implementation(project(path: ":spring-boot-project:spring-boot-integration"))

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies {
1717

1818
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
1919
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
20+
optional(project(":spring-boot-project:spring-boot-docker-compose"))
2021
optional(project(":spring-boot-project:spring-boot-opentelemetry"))
2122
optional(project(":spring-boot-project:spring-boot-testcontainers"))
2223
optional("ch.qos.logback:logback-classic")
@@ -48,6 +49,7 @@ dependencies {
4849
optional("org.testcontainers:grafana")
4950

5051
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
52+
dockerTestImplementation(testFixtures(project(":spring-boot-project:spring-boot-docker-compose")))
5153
dockerTestImplementation("io.rest-assured:rest-assured")
5254
dockerTestImplementation("org.testcontainers:junit-jupiter")
5355

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

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

1919
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2020
import org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails;
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

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

1919
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2020
import org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails;
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.docker.compose.service.connection.otlp;
17+
package org.springframework.boot.metrics.docker.compose.otlp;
1818

1919
import org.springframework.boot.docker.compose.core.RunningService;
2020
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Support for Docker Compose OpenTelemetry service connections.
18+
* Support for Docker Compose OpenTelemetry metrics service connections.
1919
*/
20-
package org.springframework.boot.docker.compose.service.connection.otlp;
20+
package org.springframework.boot.metrics.docker.compose.otlp;

spring-boot-project/spring-boot-metrics/src/main/resources/META-INF/spring.factories

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Connection Details Factories
22
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
3+
org.springframework.boot.metrics.docker.compose.otlp.OpenTelemetryMetricsDockerComposeConnectionDetailsFactory,\
34
org.springframework.boot.metrics.testcontainers.otlp.GrafanaOpenTelemetryMetricsContainerConnectionDetailsFactory,\
45
org.springframework.boot.metrics.testcontainers.otlp.OpenTelemetryMetricsContainerConnectionDetailsFactory
56

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ dependencies {
1616

1717
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
1818
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
19+
optional(project(":spring-boot-project:spring-boot-docker-compose"))
1920
optional(project(":spring-boot-project:spring-boot-testcontainers"))
2021
optional("io.opentelemetry:opentelemetry-exporter-otlp")
2122
optional("org.testcontainers:grafana")
2223

2324
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
25+
dockerTestImplementation(testFixtures(project(":spring-boot-project:spring-boot-docker-compose")))
2426
dockerTestImplementation("org.testcontainers:junit-jupiter")
2527

2628
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.docker.compose.service.connection.otlp;
17+
package org.springframework.boot.opentelemetry.docker.compose;
1818

1919
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2020
import org.springframework.boot.opentelemetry.actuate.autoconfigure.logging.OpenTelemetryLoggingConnectionDetails;
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.docker.compose.service.connection.otlp;
17+
package org.springframework.boot.opentelemetry.docker.compose;
1818

1919
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2020
import org.springframework.boot.opentelemetry.actuate.autoconfigure.logging.OpenTelemetryLoggingConnectionDetails;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
otlp:
3+
image: '{imageName}'
4+
ports:
5+
- '4317'
6+
- '4318'
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.docker.compose.service.connection.otlp;
17+
package org.springframework.boot.opentelemetry.docker.compose;
1818

1919
import org.springframework.boot.docker.compose.core.RunningService;
2020
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2012-2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* Support for Docker Compose OpenTelemetry logging service connections.
19+
*/
20+
package org.springframework.boot.opentelemetry.docker.compose;
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Connection Details Factories
22
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
3+
org.springframework.boot.opentelemetry.docker.compose.OpenTelemetryLoggingDockerComposeConnectionDetailsFactory,\
34
org.springframework.boot.opentelemetry.testcontainers.GrafanaOpenTelemetryLoggingContainerConnectionDetailsFactory,\
4-
org.springframework.boot.opentelemetry.testcontainers.OpenTelemetryLoggingContainerConnectionDetailsFactory
5+
org.springframework.boot.opentelemetry.testcontainers.OpenTelemetryLoggingContainerConnectionDetailsFactory

spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dependencies {
2222

2323
dockerTestImplementation(project(":spring-boot-project:spring-boot-data-mongodb"))
2424
dockerTestImplementation(project(":spring-boot-project:spring-boot-docker-compose"))
25-
dockerTestImplementation(project(":spring-boot-project:spring-boot-docker-compose-all"))
2625
dockerTestImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
2726
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
2827
dockerTestImplementation(project(":spring-boot-project:spring-boot-tx"))

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ dependencies {
8080
mavenRepository(project(path: ":spring-boot-project:spring-boot-test", configuration: "mavenRepository"))
8181
mavenRepository(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "mavenRepository"))
8282
mavenRepository(project(path: ":spring-boot-project:spring-boot-docker-compose", configuration: "mavenRepository"))
83-
mavenRepository(project(path: ":spring-boot-project:spring-boot-docker-compose-all", configuration: "mavenRepository"))
8483
mavenRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-parent", configuration: "mavenRepository"))
8584

8685
versionProperties(project(path: ":spring-boot-project:spring-boot-dependencies", configuration: "resolvedBom"))

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies {
1818

1919
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
2020
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
21+
optional(project(":spring-boot-project:spring-boot-docker-compose"))
2122
optional(project(":spring-boot-project:spring-boot-metrics"))
2223
optional(project(":spring-boot-project:spring-boot-testcontainers"))
2324
optional("io.micrometer:micrometer-core")
@@ -32,6 +33,7 @@ dependencies {
3233
optional("org.testcontainers:grafana")
3334

3435
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
36+
dockerTestImplementation(testFixtures(project(":spring-boot-project:spring-boot-docker-compose")))
3537
dockerTestImplementation("org.testcontainers:junit-jupiter")
3638

3739
testImplementation(project(":spring-boot-project:spring-boot-opentelemetry"))
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.docker.compose.service.connection.otlp;
17+
package org.springframework.boot.tracing.docker.compose.otlp;
1818

1919
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2020
import org.springframework.boot.testsupport.container.TestImage;
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.docker.compose.service.connection.otlp;
17+
package org.springframework.boot.tracing.docker.compose.otlp;
1818

1919
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2020
import org.springframework.boot.testsupport.container.TestImage;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
otlp:
3+
image: '{imageName}'
4+
ports:
5+
- '4317'
6+
- '4318'
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.docker.compose.service.connection.otlp;
17+
package org.springframework.boot.tracing.docker.compose.otlp;
1818

1919
import org.springframework.boot.docker.compose.core.RunningService;
2020
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2012-2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* Support for Docker Compose OpenTelemetry tracing service connections.
19+
*/
20+
package org.springframework.boot.tracing.docker.compose.otlp;

spring-boot-project/spring-boot-tracing/src/main/resources/META-INF/spring.factories

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Connection Details Factories
22
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
3+
org.springframework.boot.tracing.docker.compose.otlp.OpenTelemetryTracingDockerComposeConnectionDetailsFactory,\
34
org.springframework.boot.tracing.testcontainers.otlp.GrafanaOpenTelemetryTracingContainerConnectionDetailsFactory,\
45
org.springframework.boot.tracing.testcontainers.otlp.OpenTelemetryTracingContainerConnectionDetailsFactory
56

@@ -11,3 +12,4 @@ org.springframework.boot.tracing.autoconfigure.OpenTelemetryEventPublisherBeansA
1112
org.springframework.boot.env.EnvironmentPostProcessor=\
1213
org.springframework.boot.tracing.autoconfigure.LogCorrelationEnvironmentPostProcessor
1314

15+

0 commit comments

Comments
 (0)