Skip to content

Commit bd77289

Browse files
committed
Move ActiveMQ Docker Compose support into spring-boot-activemq
1 parent 2d96bb6 commit bd77289

File tree

18 files changed

+40
-10
lines changed

18 files changed

+40
-10
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies {
1414
api("org.apache.activemq:activemq-client")
1515

1616
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
17+
optional(project(":spring-boot-project:spring-boot-docker-compose"))
1718
optional(project(":spring-boot-project:spring-boot-testcontainers"))
1819
optional("jakarta.transaction:jakarta.transaction-api")
1920
optional("org.apache.activemq:activemq-broker")
@@ -23,6 +24,7 @@ dependencies {
2324
optional("org.testcontainers:activemq")
2425

2526
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
27+
dockerTestImplementation(testFixtures(project(":spring-boot-project:spring-boot-docker-compose")))
2628
dockerTestImplementation("ch.qos.logback:logback-classic")
2729
dockerTestImplementation("org.testcontainers:junit-jupiter")
2830
testImplementation(project(":spring-boot-project:spring-boot-test"))

spring-boot-project/spring-boot-docker-compose-all/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/activemq/ActiveMQClassicDockerComposeConnectionDetailsFactoryIntegrationTests.java renamed to spring-boot-project/spring-boot-activemq/src/dockerTest/java/org/springframework/boot/activemq/docker/compose/ActiveMQClassicDockerComposeConnectionDetailsFactoryIntegrationTests.java

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.activemq;
17+
package org.springframework.boot.activemq.docker.compose;
1818

1919
import org.springframework.boot.activemq.autoconfigure.ActiveMQConnectionDetails;
2020
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;

spring-boot-project/spring-boot-docker-compose-all/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/activemq/ActiveMQDockerComposeConnectionDetailsFactoryIntegrationTests.java renamed to spring-boot-project/spring-boot-activemq/src/dockerTest/java/org/springframework/boot/activemq/docker/compose/ActiveMQDockerComposeConnectionDetailsFactoryIntegrationTests.java

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.activemq;
17+
package org.springframework.boot.activemq.docker.compose;
1818

1919
import org.springframework.boot.activemq.autoconfigure.ActiveMQConnectionDetails;
2020
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;

spring-boot-project/spring-boot-docker-compose-all/src/dockerTest/resources/org/springframework/boot/docker/compose/service/connection/activemq/activemq-classic-compose.yaml renamed to spring-boot-project/spring-boot-activemq/src/dockerTest/resources/org/springframework/boot/activemq/docker/compose/activemq-classic-compose.yaml

File renamed without changes.

spring-boot-project/spring-boot-docker-compose-all/src/dockerTest/resources/org/springframework/boot/docker/compose/service/connection/activemq/activemq-compose.yaml renamed to spring-boot-project/spring-boot-activemq/src/dockerTest/resources/org/springframework/boot/activemq/docker/compose/activemq-compose.yaml

File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
artemis:
3+
image: '{imageName}'
4+
ports:
5+
- '61616'
6+
environment:
7+
ARTEMIS_USER: 'root'
8+
ARTEMIS_PASSWORD: 'secret'

spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/docker/compose/service/connection/activemq/ActiveMQClassicDockerComposeConnectionDetailsFactory.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/docker/compose/ActiveMQClassicDockerComposeConnectionDetailsFactory.java

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.activemq;
17+
package org.springframework.boot.activemq.docker.compose;
1818

1919
import org.springframework.boot.activemq.autoconfigure.ActiveMQConnectionDetails;
2020
import org.springframework.boot.docker.compose.core.RunningService;

spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/docker/compose/service/connection/activemq/ActiveMQClassicEnvironment.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/docker/compose/ActiveMQClassicEnvironment.java

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.activemq;
17+
package org.springframework.boot.activemq.docker.compose;
1818

1919
import java.util.Map;
2020

spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/docker/compose/service/connection/activemq/ActiveMQDockerComposeConnectionDetailsFactory.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/docker/compose/ActiveMQDockerComposeConnectionDetailsFactory.java

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.activemq;
17+
package org.springframework.boot.activemq.docker.compose;
1818

1919
import org.springframework.boot.activemq.autoconfigure.ActiveMQConnectionDetails;
2020
import org.springframework.boot.docker.compose.core.RunningService;

spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/docker/compose/service/connection/activemq/ActiveMQEnvironment.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/docker/compose/ActiveMQEnvironment.java

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.activemq;
17+
package org.springframework.boot.activemq.docker.compose;
1818

1919
import java.util.Map;
2020

0 commit comments

Comments
 (0)