generated from making/opinionated-spring-boot-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrewrite.yml
32 lines (32 loc) · 1.38 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
---
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: am.ik.blog # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.text.FindAndReplace:
find: OpinionatedSpringBootAppApplication # Main Class Name
replace: ImageProxyApplication # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.text.FindAndReplace:
find: com.example # Maven GroupId
replace: am.ik.blog # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.text.FindAndReplace:
find: opinionated-spring-boot-app # Maven ArtifactId
replace: image-proxy # <-- change me
caseSensitive: true
filePattern: '**/*.java;**/*.properties;**/*.xml'
- org.openrewrite.RenameFile:
fileMatcher: '**/OpinionatedSpringBootAppApplication.java' # Main Class Name
fileName: ImageProxyApplication.java # <-- change me
- org.openrewrite.RenameFile:
fileMatcher: '**/TestOpinionatedSpringBootAppApplication.java' # Test Main Class
fileName: TestImageProxyApplication.java # <-- change me
- org.openrewrite.java.RemoveUnusedImports