Describe the bug
org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfiguration is an auto-configuration that should back off if a FunctionCatalog bean is present. PlainFunctionScanConfiguration is doing component scan, which is a PARSE_CONFIGURATION business. You can't scan for additional beans that should happen early and prevent that from happening if a bean is present.
Sample
This will fail in Spring Framework 6.2.0-M1 onwards as we've tighten up that rule, see spring-projects/spring-framework#23206. As such, I am expecting the tests of this project to fail when building against Spring Framework 6.2.
Describe the bug
org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfigurationis an auto-configuration that should back off if aFunctionCatalogbean is present.PlainFunctionScanConfigurationis doing component scan, which is aPARSE_CONFIGURATIONbusiness. You can't scan for additional beans that should happen early and prevent that from happening if a bean is present.Sample
This will fail in Spring Framework
6.2.0-M1onwards as we've tighten up that rule, see spring-projects/spring-framework#23206. As such, I am expecting the tests of this project to fail when building against Spring Framework 6.2.