Add PlatformTransactionManager to tasklet() and chunk() calls
MSALSpring Batch 5.0 requires a PlatformTransactionManager as the second argument to StepBuilder.tasklet(Tasklet) and StepBuilder.chunk(int) / StepBuilder.chunk(CompletionPolicy). This recipe passes a PlatformTransactionManager variable that is in scope, and otherwise adds a transactionManager method parameter.
org. openrewrite. java. spring. batch. AddTransactionManagerToTaskletAndChunkmod run . --recipe= org. openrewrite. java. spring. batch. AddTransactionManagerToTaskletAndChunkInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.