Wildcard in Fully Qualified Paths? #851
-
Is it possible to use wildcards in a path definition in rewrite.yml? I'm looking to provide a recipe to convert imports of one version of library code to another, where the difference is a consistent change to fully qualified path name. There are a lot of classes in the library and rather than provide thousands of lines of change definitions, one line for each class, it would be good to be able to do something like this: `---
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@m-brophy Hi! There is a type: specs.openrewrite.org/v1beta/recipe
name: org.mine.LibraryUpgradeRecipe
displayName: Change library package example
recipeList:
- org.openrewrite.java.ChangePackage:
oldPackageName: org.mine.child.foo
newPackageName: org.mine.foo |
Beta Was this translation helpful? Give feedback.
@m-brophy Hi! There is a
org.openrewrite.java.ChangePackage
recipe that is designed for this purpose.