github spring-projects/spring-modulith 2.2.0
2.2 GA

55 minutes ago

💡 Improvements

Event Publication Registry

  • Default event completion to be performed within listener transaction #1961
  • Allow to distinguish between failed and abandoned event publications #1764

Core

  • Allow to declare a dependency on everything a module exposes, base package included #1924
  • Extend programmatic control of NamedInterface registration to types (not just packages) #1839
  • A shared module unnecessarily lists itself as an allowed target #1927
  • Superfluous "the" in the Javadoc of JavaPackages #1841

Test Support

  • Allow checking for events that should not arrive #1357

Moments

  • Add seconds and hours to Moments granularity #1688
  • Automatically disable scheduling activation for tests #1995

Observability

  • References to new observability artifacts missing from reference documentation appendix #1758

Miscellaneous

  • Avoid referring to ArchUnit's DescribedPredicate when Java's Predicate is sufficient #1876
  • Skipping resubmission log message uses %s placeholders with SLF4J #1983
  • Use Namastack version property in spring-modulith-events-core #1805
  • Modernize auto-configuration registration in the moments, events, and observability modules #1774
  • Polish reference documentation #1845
  • Unstable order of relationships in generated PlantUML files #1991

🪲 Bugs

Event Publication Registry

  • Completed event publications can be claimed for resubmission and marked as failed again #1925
  • Staleness monitor treats zero per-state timeouts as immediately expired #1917
  • Minimum age of failed event publications to resubmit is ignored by the JDBC and JPA repositories #1908
  • Non-serializable event still crashes despite listener being excluded via registry-trigger-annotation #1903
  • Evaluate broker routing SpEL expressions against the original event #1896
  • Store the original domain event in the Namastack outbox #1895
  • Routing key not properly resolved for Namastack integration #1861
  • Unable to mark events as FAILED in MongoDB event registry via the staleness monitor #1855
  • Staleness check marks retries as stale prematurely #1836
  • Fix Testcontainers setup to ensure fresh containers for SQL databases #1801
  • Event externalization throws ClassCastException with event listener using ApplicationListener.forPayload(…) #1783
  • RabbitJackson2Configuration and RabbitJacksonConfiguration conflict when Jackson 2.x is on classpath (e.g. Eureka Client) #1776
  • Typo in spring.modulith.events.staleness.check-interval configuration property #1757
  • Implementations of ApplicationEvent wrongly rewrapped into PayloadApplicationEvent #1565
  • MongoDB event publication repository not working properly with archive completion mode #1412

Core

  • FormattableType.of(ResolvableType) overflows the stack for self-bounded type variables (breaks observability in 2.1.2) #2011
  • FormattableType.of(ResolvableType) renders array types using their JVM binary names #1901
  • AOT-generated application-modules.json lacks initializers, so precomputed initializer ordering is lost #1864
  • Potential NullPointerException in FormattableType.of(…) for wildcard types #1786
  • Ambiguous violation message when referring to a non-exposed type in a module generally available for access #1778
  • @DomainEvent not detected on parent types #1118

JUnit Extension

  • WorkingDirectoryChangesDetector fails in git submodule work trees #1849
  • ConcurrentModificationException in TestExecutionCondition when running tests with JUnit parallel class execution #1789

Moments

  • WeekHasPassed.getStartDate() ignores the Locale's first day of week #2017
  • Full time shift applied before …HasPassed events are published #1976

Observability

  • Unbounded wildcard / type-variable generic parameters break FormattableType (NPE in DefaultObservedModule.render) #1748
  • Methods declared in a modules API but implemented in non-exposed types not properly intercepted for observability #1712

Documentation Support

  • Documentation generation fails when extracted Javadoc contains quotes or unbalanced braces #1762

Infrastructure

  • MongoDB event publication tests use default localhost connection instead of Testcontainers #1733

Reference Documentation

  • Wrong Javadoc in WeekHasPassed #1987

Runtime

  • __root module Flyway migrations are not executed during a test #1750

🔨 Dependency Upgrades

Don't miss a new spring-modulith release

NewReleases is sending notifications on new releases.