Add setJobRegistry(..) to manually configured TaskExecutorJobOperator
ProprietarySpring Batch 6 replaced TaskExecutorJobLauncher with TaskExecutorJobOperator, which requires both setJobRepository(..) and setJobRegistry(..) to be called before afterPropertiesSet(). When a TaskExecutorJobOperator is constructed and initialized manually (typically in a @Bean factory method) without a setJobRegistry(..) call, add a JobRegistry parameter to the enclosing method and call setJobRegistry(..) so the operator is fully configured.
io. moderne. java. spring. batch. AddJobRegistryToTaskExecutorJobOperatormod run . --recipe= io. moderne. java. spring. batch. AddJobRegistryToTaskExecutorJobOperatorInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.