/
spring-batch-5.0.yml
91 lines (90 loc) · 5.48 KB
/
spring-batch-5.0.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# Copyright 2022 the original author or authors.
# <p>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# <p>
# https://www.apache.org/licenses/LICENSE-2.0
# <p>
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.SpringBatch4To5Migration
displayName: Migrate to Spring Batch 5.0 from 4.3
description: Migrate applications built on Spring Batch 4.3 to the latest Spring Batch 5.0 release.
tags:
- spring
- batch
recipeList:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework.batch
artifactId: "*"
newVersion: 5.0.x
overrideManagedVersion: false
- org.openrewrite.java.spring.batch.ImplementJobExecutionListenerDirectly
- org.openrewrite.java.spring.batch.ImplementStepExecutionListenerDirectly
- org.openrewrite.java.spring.batch.ImplementChunkListenerDirectly
- org.openrewrite.java.spring.batch.ImplementSkipListenerSupportDirectly
- org.openrewrite.java.spring.batch.MigrateJobBuilderFactory
- org.openrewrite.java.spring.batch.MigrateItemWriterWrite
- org.openrewrite.java.spring.batch.RemoveDefaultBatchConfigurer
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.batch.core.metrics.BatchMetrics
newFullyQualifiedTypeName: org.springframework.batch.core.observability.BatchMetrics
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.batch.core.step.item.Chunk
newFullyQualifiedTypeName: org.springframework.batch.item.Chunk
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.batch.core.configuration.annotation.ScopeConfiguration
newFullyQualifiedTypeName: org.springframework.batch.core.configuration.support.ScopeConfiguration
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.batch.ImplementJobExecutionListenerDirectly
displayName: Transform classes that extend `JobExecutionListenerSupport` to implement the `JobExecutionListener` interface instead
description: As of 5.0 `JobExecutionListener` has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter.
recipeList:
- org.openrewrite.java.spring.batch.ReplaceSupportClassWithItsInterface:
fullyQualifiedClassName: org.springframework.batch.core.listener.JobExecutionListenerSupport
fullyQualifiedInterfaceName: org.springframework.batch.core.JobExecutionListener
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.batch.ImplementStepExecutionListenerDirectly
displayName: Transform classes that extend `StepExecutionListenerSupport` to implement the `StepExecutionListener` interface instead
description: As of 5.0 `StepExecutionListener` has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter.
recipeList:
- org.openrewrite.java.spring.batch.ReplaceSupportClassWithItsInterface:
fullyQualifiedClassName: org.springframework.batch.core.listener.StepExecutionListenerSupport
fullyQualifiedInterfaceName: org.springframework.batch.core.StepExecutionListener
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.batch.ImplementChunkListenerDirectly
displayName: Transform classes that extend `ChunkListenerSupport` to implement the `ChunkListener` interface instead
description: As of 5.0 `ChunkListener` has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter.
recipeList:
- org.openrewrite.java.spring.batch.ReplaceSupportClassWithItsInterface:
fullyQualifiedClassName: org.springframework.batch.core.listener.ChunkListenerSupport
fullyQualifiedInterfaceName: org.springframework.batch.core.ChunkListener
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.batch.ImplementSkipListenerSupportDirectly
displayName: Transform classes that extend `SkipListenerSupport` to implement the `SkipListener` interface instead
description: As of 5.0 `SkipListener` has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter.
recipeList:
- org.openrewrite.java.spring.batch.ReplaceSupportClassWithItsInterface:
fullyQualifiedClassName: org.springframework.batch.core.listener.SkipListenerSupport
fullyQualifiedInterfaceName: org.springframework.batch.core.SkipListener
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.batch.ImplementRepeatListenerDirectly
displayName: Transform classes that extend `RepeatListenerSupport` to implement the `RepeatListener` interface instead
description: As of 5.0 `RepeatListener` has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter.
recipeList:
- org.openrewrite.java.spring.batch.ReplaceSupportClassWithItsInterface:
fullyQualifiedClassName: org.springframework.batch.repeat.listener.RepeatListenerSupport
fullyQualifiedInterfaceName: org.springframework.batch.repeat.RepeatListener