Skip to content

Commit f7b6899

Browse files
committed
Create spring-boot-activemq module
1 parent a7c3053 commit f7b6899

File tree

34 files changed

+171
-133
lines changed

34 files changed

+171
-133
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ include "spring-boot-project:spring-boot-tools:spring-boot-properties-migrator"
5757
include "spring-boot-project:spring-boot-tools:spring-boot-test-support"
5858
include "spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"
5959
include "spring-boot-project:spring-boot"
60+
include "spring-boot-project:spring-boot-activemq"
6061
include "spring-boot-project:spring-boot-amqp"
6162
include "spring-boot-project:spring-boot-autoconfigure"
6263
include "spring-boot-project:spring-boot-autoconfigure-all"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
plugins {
2+
id "java-library"
3+
id "org.springframework.boot.auto-configuration"
4+
id "org.springframework.boot.configuration-properties"
5+
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.optional-dependencies"
7+
}
8+
9+
description = "Spring Boot ActiveMQ"
10+
11+
dependencies {
12+
api(project(":spring-boot-project:spring-boot-jms"))
13+
api("org.apache.activemq:activemq-client")
14+
15+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
16+
optional("jakarta.transaction:jakarta.transaction-api")
17+
optional("org.apache.activemq:activemq-broker")
18+
optional("org.messaginghub:pooled-jms") {
19+
exclude group: "org.apache.geronimo.specs", module: "geronimo-jms_2.0_spec"
20+
}
21+
22+
testImplementation(project(":spring-boot-project:spring-boot-test"))
23+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
24+
testImplementation("org.assertj:assertj-core")
25+
testImplementation("org.awaitility:awaitility")
26+
testImplementation("org.junit.jupiter:junit-jupiter")
27+
testImplementation("org.mockito:mockito-core")
28+
testImplementation("org.mockito:mockito-junit-jupiter")
29+
30+
testRuntimeOnly("ch.qos.logback:logback-classic")
31+
}

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQAutoConfiguration.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQAutoConfiguration.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.autoconfigure.jms.activemq;
17+
package org.springframework.boot.activemq.autoconfigure;
1818

1919
import jakarta.jms.ConnectionFactory;
2020
import org.apache.activemq.ActiveMQConnectionFactory;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionDetails.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionDetails.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 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.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.jms.activemq;
17+
package org.springframework.boot.activemq.autoconfigure;
1818

1919
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetails;
2020

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryConfiguration.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryConfiguration.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.autoconfigure.jms.activemq;
17+
package org.springframework.boot.activemq.autoconfigure;
1818

1919
import jakarta.jms.ConnectionFactory;
2020
import org.apache.activemq.ActiveMQConnectionFactory;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryConfigurer.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryConfigurer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.jms.activemq;
17+
package org.springframework.boot.activemq.autoconfigure;
1818

1919
import java.util.Collections;
2020
import java.util.List;
2121

2222
import org.apache.activemq.ActiveMQConnectionFactory;
2323

24-
import org.springframework.boot.autoconfigure.jms.activemq.ActiveMQProperties.Packages;
24+
import org.springframework.boot.activemq.autoconfigure.ActiveMQProperties.Packages;
2525
import org.springframework.util.Assert;
2626

2727
/**

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryCustomizer.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 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.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.jms.activemq;
17+
package org.springframework.boot.activemq.autoconfigure;
1818

1919
import org.apache.activemq.ActiveMQConnectionFactory;
2020

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQProperties.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.autoconfigure.jms.activemq;
17+
package org.springframework.boot.activemq.autoconfigure;
1818

1919
import java.time.Duration;
2020
import java.util.ArrayList;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQXAConnectionFactoryConfiguration.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQXAConnectionFactoryConfiguration.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.autoconfigure.jms.activemq;
17+
package org.springframework.boot.activemq.autoconfigure;
1818

1919
import jakarta.jms.ConnectionFactory;
2020
import jakarta.transaction.TransactionManager;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/package-info.java renamed to spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
/**
1818
* Auto-configuration for ActiveMQ.
1919
*/
20-
package org.springframework.boot.autoconfigure.jms.activemq;
20+
package org.springframework.boot.activemq.autoconfigure;

0 commit comments

Comments
 (0)