The GitHub Actions job "CI" on 
grails-core.git/fix/locale-resolver-conditional-bean has failed.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
dbee13e92fef4e22a9452d56ccd87f648c8896e8 / Scott Murphy Heiberg 
<[email protected]>
Make localeResolver overridable via @ConditionalOnMissingBean

I18nAutoConfiguration registered the `localeResolver` bean
unconditionally. As a result, any application- or plugin-supplied
LocaleResolver produced a bean-definition override of the framework
default - a warning by default, and a hard startup failure when
spring.main.allow-bean-definition-overriding=false.

Spring Boot's own WebMvcAutoConfiguration.localeResolver() is annotated
@ConditionalOnMissingBean for exactly this reason. Apply the same so the
Grails default backs off cleanly when a localeResolver bean is already
present.

The condition is keyed on the bean name rather than the type:
DispatcherServlet resolves the locale resolver by the fixed
DispatcherServlet.LOCALE_RESOLVER_BEAN_NAME ("localeResolver"), so a
LocaleResolver bean registered under a different name would not be the
one actually used.

Report URL: https://github.com/apache/grails-core/actions/runs/27925090703

With regards,
GitHub Actions via GitBox

Reply via email to