Description
Consider introducing a new annotation, @DisableFunctionalAutodiscovery
, that autoconfiguration providers could use to prevent infrastructural functional beans from being surfaced in the function registry.
Function autodiscovery is very convenient for user applications, but could lead to surprising behavior, in which Spring Cloud Function autodiscovery stops working when an unrelated dependency is added to the project. Spring projects that introduce conflicting autoconfiguration are best positioned to exclude the problematic beans by pulling Spring Cloud Function as a compile-time dependency and adding the @DisableFunctionalAutodiscovery
annotation. And we'd love to keep developers from spending time on unnecessary troubleshooting caused by our projects 😩 .
Related issues: #409, #417, spring-attic/spring-cloud-gcp#1997.