Add setJobRegistry(..) to manually configured TaskExecutorJobOperator

Proprietary

Spring 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.AddJobRegistryToTaskExecutorJobOperator
mod run . --recipe=io.moderne.java.spring.batch.AddJobRegistryToTaskExecutorJobOperator

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.