Commit Graph

456 Commits

Author SHA1 Message Date
Oliver Drotbohm
c06a2c915e GH-474 - Prepare next development iteration. 2024-01-19 19:49:09 +01:00
Oliver Drotbohm
6f5886ddef GH-474 - Release version 1.2.0-M1. 2024-01-19 19:49:08 +01:00
Oliver Drotbohm
5ed4635c68 GH-457 - Upgrade to Spring Boot 3.3 M1.
Also, Spring Framework 6.1.3.
2024-01-19 19:43:24 +01:00
Roger Jäggi
dbc8ab442c GH-469 - Add missing events-aws-* modules to BOM.
Adds spring-modulith-events-aws-sns and spring-modulith-events-aws-sqs modules to the project BOM.
2024-01-19 12:47:44 +01:00
Oliver Drotbohm
c32227bdfb GH-463 - Update copyright headers. 2024-01-17 19:45:40 +01:00
Oliver Drotbohm
72762faf4d GH-462 - Upgrade to latest Structurizr.
Core 1.18 -> 1.29
Export 1.8.3 -> 1.19.0
2024-01-17 18:03:32 +01:00
Oliver Drotbohm
3486b119d9 GH-461 - Explicitly use clean verify for integration builds.
To make sure we always use fresh dependencies.
2024-01-17 17:08:21 +01:00
Oliver Drotbohm
6905fdd8ae GH-458 - Move off deprecated DatabaseDriver.fromDataSource(…). 2024-01-17 16:32:58 +01:00
Oliver Drotbohm
48aa0b246a GH-406 - Improve detection of AOT types generated by Spring.
We now guard the annotation predicate for @Generated behind a classpath check to avoid a NoClassDefFoundError on previous versions of Spring Framework.
2024-01-17 16:30:40 +01:00
Oliver Drotbohm
ac9ba52696 GH-457 - Upgrade to Spring Boot 3.3 snapshots. 2024-01-17 16:30:40 +01:00
Oliver Drotbohm
c4e6e8613d GH-451 - Polishing. 2024-01-16 20:18:00 +01:00
TAO
16cd708adf GH-435 - Fix potentially broken debug log output in PersistentApplicationEventMulticaster.
Swapped the ternary operator conditions for the 'message' variable assignment.

Fixes GH-435.
2024-01-16 20:06:18 +01:00
Oliver Drotbohm
a85a788ad2 GH-438 - Fix event externalization for RabbitMQ.
We now properly wrap the null value returned as a result from the RabbitMQ event externalization into a CompletableFuture. Tightened test case to prevent regressions going forward.
2024-01-16 19:16:36 +01:00
Oliver Drotbohm
1e71649073 GH-449 - Guard against AutoConfiguration- and EntityScanPackages bean definitions not having any constructor argument defined. 2024-01-16 18:09:34 +01:00
Oliver Drotbohm
dd6bb85e94 GH-451 - Introduce EventPublicationRepository.findCompletedPublications().
The default EventPublicationRegistry previously erroneously called find*In*completePublications(), i.e. returned incomplete publications when it was supposed to look up the completed ones. To be able to do the latter we need to extend EventPublicationRepository and introduce a query execution for all completed publications.

As we'd normally only chance API in major versions, but the bugfix needing to go into a bugfix release, the new method is introduced as default method rejecting the execution in case a currently existing repository implementation does not implement it. This allows us to adapt the implementations we ship to support the bugfix, but will require other implementations to ship an adapted version. This means we can ship a release that's not breaking assuming one of the official store implementations is used.
2024-01-16 18:09:26 +01:00
Oliver Drotbohm
2f96c75377 GH-442 - Fix invalid reference in event externalization reference docs. 2024-01-10 15:15:45 +01:00
Oliver Drotbohm
47a70f46f6 GH-443 - Polishing. 2024-01-10 14:46:50 +01:00
Oliver Drotbohm
31dfa45924 GH-443 - Declare most concrete type for EventPublicationRegistry configuration. 2024-01-10 14:46:42 +01:00
Oliver Drotbohm
88f65f18cb GH-428 - Avoid duplicate inclusions of modules in test executions. 2023-12-21 22:19:36 +01:00
Oliver Drotbohm
b9f3fc2263 GH-418 - Include JSR 303 ConstraintValidator implementations in bootstrap dependency analysis.
Spring Boot configures Hibernate Validator in a way that the latter looks up the components it needs to instantiate via the Spring container. That in turn then creates prototype instances of the types requested. This means, implementations of e.g. ConstraintValidator do not need to be explicitly marked as Spring beans, but could still declare dependencies to other Spring beans. If such a dependency crosses a module boundary, we currently fail to detect that implicitly established module dependency.

This is now fixed by considering ConstraintValidator implementations Spring beans implicitly in out bootstrap dependency analysis.
2023-12-21 18:09:29 +01:00
Oliver Drotbohm
b389d5589a GH-420 - Update compatibility build. 2023-12-21 14:23:26 +01:00
Oliver Drotbohm
1cef673653 GH-422 - Upgrade to jMolecules 2023.1.1. 2023-12-21 14:14:50 +01:00
Oliver Drotbohm
61fc854b99 GH-421 - Upgrade to ArchUnit 1.2.1. 2023-12-21 14:14:50 +01:00
Oliver Drotbohm
ee1b0ded88 GH-420 - Upgrade Spring Boot 3.2.1. 2023-12-21 14:14:47 +01:00
Oliver Drotbohm
d9c3223ca0 GH-419 - Upgrade to Spring Cloud AWS 3.1. 2023-12-21 14:09:29 +01:00
Oliver Drotbohm
c1f5630a72 GH-406 - Improving the detection of Spring AOT classes.
We now inspect the classes for the newly introduced Spring AOT @Generated annotation instead of a name containing a double underscore.
2023-12-08 22:15:29 +01:00
Oliver Drotbohm
4043b2edee GH-410 - Upgrade to Spring Framework 6.1.2 snapshots. 2023-12-08 22:12:17 +01:00
Oliver Drotbohm
e7b531e061 GH-406 - Ignore Spring AOT generated types in architecture model.
We now explicitly exclude classes generated by Spring AOT in the architectural model. For technical reasons, they might introduce dependencies to application components considered module internals otherwise. Also, proxies generated do not need to be considered either.
2023-12-06 14:17:43 +01:00
Oliver Drotbohm
da43c72828 GH-395 - Avoid event publication completion for failed CompletableFutures.
We now explicitly handle CompletableFuture instances returned from transactional event listeners by registering the completion handlers only on success, the debug logging on failure and immediately return the decorated instance.

Previously, a failed CompletableFuture instance would still have the publication marked completed as it doesn't cause any exception being thrown and thus ultimately ending up in the code path that issues the completion.
2023-11-28 15:27:17 +01:00
Oliver Drotbohm
5bb16e4c93 GH-393 - Prepare next development iteration. 2023-11-24 18:22:06 +01:00
Oliver Drotbohm
c6c0c0f500 GH-393 - Release version 1.1.0. 2023-11-24 18:22:06 +01:00
Oliver Drotbohm
8195f2abb0 GH-389 - Upgrade to Spring Framework 6.1. 2023-11-24 17:28:45 +01:00
Oliver Drotbohm
2a826e87c7 GH-388 - Upgrade to Spring Boot 3.2. 2023-11-24 17:27:10 +01:00
Niki Micallef
f81c155011 GH-383 - Update runtime.adoc by completing intro paragraph.
Original pull request: GH-384.
2023-11-24 15:32:45 +01:00
nkolosnjaji
2afa435722 GH-369 - Prefer MongoTemplate.findAndModify(…) over ….updateFirst(…).
Original pull request: GH-380.
2023-11-24 13:28:32 +01:00
Oliver Drotbohm
b4bb541649 GH-372 - Propagate original exception from CompletionRegisteringAdvisor.
We now propagate potentially occurring exceptions in CompletionRegisteringAdvisor to make sure the standard exception handling facilities kick in, both for synchronous and asynchronous listener invocations.

This implies that during republication we need to handle exceptions to make sure that failing synchronous listeners to not prevent the submission of subsequent publications. We currently log such exceptions into error.
2023-11-19 21:58:32 +01:00
Oliver Drotbohm
9d30fcd29c GH-373 - Fix detection of jMolecules Layered Architecture presence. 2023-11-17 17:14:17 +01:00
Oliver Drotbohm
af0323893b GH-376 - Polishing. 2023-11-17 16:46:02 +01:00
Oliver Drotbohm
37f2bdb4d6 GH-376 - Avoid initializing ApplicationModules for actuators on native images.
We now register a BeanFactoryInitializationAotProcessor to generate the actuator endpoint content representing the application module structure at AOT processing time. That file is then preferred over bootstrapping an ApplicationModules instance when bootstrapping the endpoint.
2023-11-17 16:30:16 +01:00
Oliver Drotbohm
08e837f7ec GH-375 - Avoid initialization of ApplicationModulesRuntime if possible. 2023-11-17 15:23:10 +01:00
Oliver Drotbohm
9f42ae4308 GH-368 - Polishing. 2023-11-14 11:02:21 +01:00
Oliver Drotbohm
80e53accf7 GH-368 - Integration tests. 2023-11-14 11:01:49 +01:00
Benjamin Knauer
74dda2cdae GH-368 - Consider filter handed into IncompleteEventPublications.resubmitIncompletePublications(…).
Original pull request: GH-367.
2023-11-14 11:00:41 +01:00
Oliver Drotbohm
a518707c7e GH-371 - Disable waiting for termination defaulting on Spring Framework 6.1.
We now skip the defaulting to wait of the pool shutdown termination on Spring Framework 6.1, as on that, pools implement Lifecycle and we need to wait for complete shutdown during Lifecycle.stop() already and setting the flag would delay that wait to the actual destruction phase.
2023-11-14 10:16:57 +01:00
Oliver Drotbohm
3692a209d7 GH-364 - Register reflection metadata for ApplicationListenerMethodAdapter.
The maintain general compatibility with Spring Framework 6.0, we issue a few reflective inspections on ApplicationListenerMethodAdapter. To make this work properly in native images, we now register those methods for GraalVM reflection.
2023-11-07 20:35:22 +01:00
Oliver Drotbohm
e2cc4fe2a4 GH-345 - Properly handle manually declared entity scan and autoconfiguration packages.
If Spring Modulith packages were explicitly configured as autoconfiguration or entity scan packages, the test autoconfiguration would fail as it previously attempted to manipulate an immutable list. We now create a copy of that list to fix this.
2023-11-03 20:16:38 +01:00
Oliver Drotbohm
4e453885ee GH-359 - Add Now.instant(). 2023-11-03 10:42:30 +01:00
Oliver Drotbohm
20a7474f2f GH-358 - Prepare next development iteration. 2023-11-03 09:02:46 +01:00
Oliver Drotbohm
6336e32d54 GH-358 - Release version 1.1.0-RC2. 2023-11-03 09:02:45 +01:00
Oliver Drotbohm
72e33fca5f GH-354 - Upgrade to Spring Boot 3.2 RC2.
Also, let only examples run on integration versions.
2023-11-03 08:24:11 +01:00