Add PlatformTransactionManager to tasklet() and chunk() calls

MSAL

Spring 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.AddTransactionManagerToTaskletAndChunk
mod run . --recipe=org.openrewrite.java.spring.batch.AddTransactionManagerToTaskletAndChunk

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