-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrewrite.yml
37 lines (37 loc) · 1.57 KB
/
rewrite.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
---
type: specs.openrewrite.org/v1beta/recipe
name: com.example.RenameProject
displayName: Rename project
recipeList:
- org.openrewrite.java.ChangePackage:
oldPackageName: com.example.opinionated # Base Package
newPackageName: foo.bar.demo # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.text.FindAndReplace:
find: OpinionatedSpringBootAppApplication # Main Class Name
replace: DemoAppApplication # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.text.FindAndReplace:
find: com.example # Maven GroupId
replace: foo.bar # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.text.FindAndReplace:
find: opinionated-spring-boot-app # Maven ArtifactId
replace: demo # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.text.FindAndReplace:
find: opinionated # Base Package - Maven GroupId
replace: demo # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.RenameFile:
fileMatcher: '**/OpinionatedSpringBootAppApplication.java' # Main Class Name
fileName: DemoAppApplication.java # <-- change me
- org.openrewrite.RenameFile:
fileMatcher: '**/TestOpinionatedSpringBootAppApplication.java' # Test Main Class
fileName: TestDemoAppApplication.java # <-- change me
- org.openrewrite.java.RemoveUnusedImports