For me after migrating Spring boot 3 and Spring cloud to 4.0.x. Spring cloud stream Kafka was not getting started/consuming the events.
As @Gondri mentioned in the comments,
spring.cloud.stream.function.definition
moved to spring.cloud.function.definition
. After changing this, it started working.