Use matchingValue(..) to match published events by value
ProprietarySpring Modulith 2.1 removes PublishedEvents.TypedPublishedEvents#matching(Function, Object), and Spring Modulith 2.2 removes PublishedEventsAssert.PublishedEventAssert#matching(Function, Object). Replaces calls to them with matchingValue(..), and leaves calls to the matching(Function, Predicate) overload in place.
io. moderne. java. spring. boot4. MigratePublishedEventsMatchingToMatchingValuemod run . --recipe= io. moderne. java. spring. boot4. MigratePublishedEventsMatchingToMatchingValueInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.