Migrate to Spring Batch 6.0 from 5.2
MSALMigrate applications built on Spring Batch 5.2 to the latest Spring Batch 6.0 release.
org. openrewrite. java. spring. batch. SpringBatch5To6Migrationmod run . --recipe= org. openrewrite. java. spring. batch. SpringBatch5To6MigrationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate to Spring Batch 5.0 from 4.3
- Upgrade Gradle or Maven dependency versions
org.springframework.batch:*:6.0.x - Rename package name
org.springframework.batch.itemtoorg.springframework.batch.infrastructure.item - Rename package name
org.springframework.batch.pollertoorg.springframework.batch.infrastructure.poller - Rename package name
org.springframework.batch.repeattoorg.springframework.batch.infrastructure.repeat - Rename package name
org.springframework.batch.supporttoorg.springframework.batch.infrastructure.support - Rename package name
org.springframework.batch.core.exploretoorg.springframework.batch.core.repository.explore - Change type
org.springframework.batch.core.repository.dao.JdbcExecutionContextDaotoorg.springframework.batch.core.repository.dao.jdbc.JdbcExecutionContextDao - Change type
org.springframework.batch.core.repository.dao.JdbcJobExecutionDaotoorg.springframework.batch.core.repository.dao.jdbc.JdbcJobExecutionDao - Change type
org.springframework.batch.core.repository.dao.JdbcJobInstanceDaotoorg.springframework.batch.core.repository.dao.jdbc.JdbcJobInstanceDao - Change type
org.springframework.batch.core.repository.dao.JdbcStepExecutionDaotoorg.springframework.batch.core.repository.dao.jdbc.JdbcStepExecutionDao - Change type
org.springframework.batch.core.repository.dao.MongoExecutionContextDaotoorg.springframework.batch.core.repository.dao.mongo.MongoExecutionContextDao - Change type
org.springframework.batch.core.repository.dao.MongoJobExecutionDaotoorg.springframework.batch.core.repository.dao.mongo.MongoJobExecutionDao - Change type
org.springframework.batch.core.repository.dao.MongoJobInstanceDaotoorg.springframework.batch.core.repository.dao.mongo.MongoJobInstanceDao - Change type
org.springframework.batch.core.repository.dao.MongoStepExecutionDaotoorg.springframework.batch.core.repository.dao.mongo.MongoStepExecutionDao - Change type
org.springframework.batch.core.repository.dao.MongoSequenceIncrementertoorg.springframework.batch.core.repository.dao.mongo.MongoSequenceIncrementer - Change type
org.springframework.batch.core.partition.support.Partitionertoorg.springframework.batch.core.partition.Partitioner - Change type
org.springframework.batch.core.partition.support.PartitionNameProvidertoorg.springframework.batch.core.partition.PartitionNameProvider - Change type
org.springframework.batch.core.partition.support.PartitionSteptoorg.springframework.batch.core.partition.PartitionStep - Change type
org.springframework.batch.core.partition.support.StepExecutionAggregatortoorg.springframework.batch.core.partition.StepExecutionAggregator - Change type
org.springframework.batch.core.ChunkListenertoorg.springframework.batch.core.listener.ChunkListener - Change type
org.springframework.batch.core.ItemProcessListenertoorg.springframework.batch.core.listener.ItemProcessListener - Change type
org.springframework.batch.core.ItemReadListenertoorg.springframework.batch.core.listener.ItemReadListener - Change type
org.springframework.batch.core.ItemWriteListenertoorg.springframework.batch.core.listener.ItemWriteListener - Change type
org.springframework.batch.core.JobExecutionListenertoorg.springframework.batch.core.listener.JobExecutionListener - Change type
org.springframework.batch.core.SkipListenertoorg.springframework.batch.core.listener.SkipListener - Change type
org.springframework.batch.core.StepExecutionListenertoorg.springframework.batch.core.listener.StepExecutionListener - Change type
org.springframework.batch.core.StepListenertoorg.springframework.batch.core.listener.StepListener - Change type
org.springframework.batch.core.Jobtoorg.springframework.batch.core.job.Job - Change type
org.springframework.batch.core.JobExecutiontoorg.springframework.batch.core.job.JobExecution - Change type
org.springframework.batch.core.JobExecutionExceptiontoorg.springframework.batch.core.job.JobExecutionException - Change type
org.springframework.batch.core.JobInstancetoorg.springframework.batch.core.job.JobInstance - Change type
org.springframework.batch.core.JobInterruptedExceptiontoorg.springframework.batch.core.job.JobInterruptedException - Change type
org.springframework.batch.core.JobKeyGeneratortoorg.springframework.batch.core.job.JobKeyGenerator - Change type
org.springframework.batch.core.DefaultJobKeyGeneratortoorg.springframework.batch.core.job.DefaultJobKeyGenerator - Change type
org.springframework.batch.core.StartLimitExceededExceptiontoorg.springframework.batch.core.job.StartLimitExceededException - Change type
org.springframework.batch.core.UnexpectedJobExecutionExceptiontoorg.springframework.batch.core.job.UnexpectedJobExecutionException - Change type
org.springframework.batch.core.CompositeJobParametersValidatortoorg.springframework.batch.core.job.parameters.CompositeJobParametersValidator - Change type
org.springframework.batch.core.DefaultJobParametersValidatortoorg.springframework.batch.core.job.parameters.DefaultJobParametersValidator - Change type
org.springframework.batch.core.JobParametertoorg.springframework.batch.core.job.parameters.JobParameter - Change type
org.springframework.batch.core.JobParameterstoorg.springframework.batch.core.job.parameters.JobParameters - Change type
org.springframework.batch.core.JobParametersBuildertoorg.springframework.batch.core.job.parameters.JobParametersBuilder - Change type
org.springframework.batch.core.JobParametersIncrementertoorg.springframework.batch.core.job.parameters.JobParametersIncrementer - Change type
JobParametersInvalidExceptiontoInvalidJobParametersException - Change type
org.springframework.batch.core.JobParametersValidatortoorg.springframework.batch.core.job.parameters.JobParametersValidator - Change type
org.springframework.batch.core.launch.support.RunIdIncrementertoorg.springframework.batch.core.job.parameters.RunIdIncrementer - Change type
org.springframework.batch.core.launch.support.DataFieldMaxValueJobParametersIncrementertoorg.springframework.batch.core.job.parameters.DataFieldMaxValueJobParametersIncrementer - Change type
org.springframework.batch.core.Steptoorg.springframework.batch.core.step.Step - Change type
org.springframework.batch.core.StepContributiontoorg.springframework.batch.core.step.StepContribution - Change type
org.springframework.batch.core.StepExecutiontoorg.springframework.batch.core.step.StepExecution - Change type
ChunkHandlertoChunkRequestHandler - Change type
JobRepositoryFactoryBeantoJdbcJobRepositoryFactoryBean - Change type
JobExplorerFactoryBeantoJdbcJobExplorerFactoryBean - Change type
org.springframework.batch.core.repository.JobExecutionAlreadyRunningExceptiontoorg.springframework.batch.core.launch.JobExecutionAlreadyRunningException - Change type
org.springframework.batch.core.repository.JobInstanceAlreadyCompleteExceptiontoorg.springframework.batch.core.launch.JobInstanceAlreadyCompleteException - Change type
org.springframework.batch.core.repository.JobRestartExceptiontoorg.springframework.batch.core.launch.JobRestartException - Change method name
org.springframework.batch.core.step.job.JobStep setJobLauncher(org.springframework.batch.core.launch.JobLauncher)tosetJobOperator - Change method name
org.springframework.batch.core.step.builder.JobStepBuilder launcher(org.springframework.batch.core.launch.JobLauncher)tooperator - Change type
JobLaunchertoJobOperator - Change method name
org.springframework.batch.core.step.tasklet.SystemCommandTasklet setJobExplorer(org.springframework.batch.core.repository.explore.JobExplorer)tosetJobRepository - Change method name
org.springframework.batch.core.partition.support.RemoteStepExecutionAggregator setJobExplorer(org.springframework.batch.core.repository.explore.JobExplorer)tosetJobRepository - Change type
JobExplorertoJobRepository - Migrate to the new chunk-oriented step model
- Change type
JobRegistryBeanPostProcessortoJobRegistrySmartInitializingSingleton