Use matchingValue(..) to match published events by value

Proprietary

Spring 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.MigratePublishedEventsMatchingToMatchingValue
mod run . --recipe=io.moderne.java.spring.boot4.MigratePublishedEventsMatchingToMatchingValue

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.