Skip to content

Commit 0ea5f32

Browse files
mslowiakodrotbohm
authored andcommitted
GH-671 - Deprecate AWS SNS and SQS integration modules.
In favor of the implementations now available in Spring Cloud AWS [0]. [0] https://github.com/awspring/spring-cloud-aws/releases/tag/v3.2.0
1 parent e0b79e5 commit 0ea5f32

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

spring-modulith-events/spring-modulith-events-aws-sns/src/main/java/org/springframework/modulith/events/aws/sns/SnsEventExternalizerConfiguration.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ DelegatingEventExternalizer snsEventExternalizer(EventExternalizationConfigurati
5959

6060
logger.debug("Registering domain event externalization to SNS…");
6161

62+
logger.warn("""
63+
The module 'spring-modulith-events-aws-sns' is deprecated since the version 1.3 of Spring Modulith.
64+
To continue using AWS SNS integration, migrate to 'io.awspring.cloud:spring-cloud-aws-modulith-events-sns'.
65+
""");
66+
6267
var context = new StandardEvaluationContext();
6368
context.setBeanResolver(new BeanFactoryResolver(factory));
6469

spring-modulith-events/spring-modulith-events-aws-sqs/src/main/java/org/springframework/modulith/events/aws/sqs/SqsEventExternalizerConfiguration.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ DelegatingEventExternalizer sqsEventExternalizer(EventExternalizationConfigurati
5858

5959
logger.debug("Registering domain event externalization to SQS…");
6060

61+
logger.warn("""
62+
The module 'spring-modulith-events-aws-sqs' is deprecated since the version 1.3 of Spring Modulith.
63+
To continue using AWS SQS integration, migrate to 'io.awspring.cloud:spring-cloud-aws-modulith-events-sqs'.
64+
""");
65+
6166
var context = new StandardEvaluationContext();
6267
context.setBeanResolver(new BeanFactoryResolver(factory));
6368

src/docs/antora/modules/ROOT/pages/appendix.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@ a|* `spring-modulith-docs`
172172
|`spring-modulith-observability`|`runtime`|Observability infrastructure described <<observability, here>>.
173173
|===
174174

175+
[appendix]
176+
[[deprecated-modules]]
177+
== Deprecated modules
178+
179+
.Deprecated modules table
180+
[cols="2,1,3", options="header, unbreakable"]
181+
|===
182+
|Module|Deprecated since|Description
183+
|`spring-modulith-events-aws-sns`|`1.3`|Please migrate to `io.awspring.cloud:spring-cloud-aws-modulith-events-sns`. See https://github.com/awspring/spring-cloud-aws/tree/main/spring-cloud-aws-sns[this link]
184+
|`spring-modulith-events-aws-sqs`|`1.3`|Please migrate to `io.awspring.cloud:spring-cloud-aws-modulith-events-sqs`. See https://github.com/awspring/spring-cloud-aws/tree/main/spring-cloud-aws-sqs[this link]
185+
|===
186+
175187
[appendix]
176188
[[schemas]]
177189
== Event publication registry schemas

0 commit comments

Comments
 (0)