You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenRewrite recipes should be runnable from within SBM.
It should also be possible to use OpenRewrite recipes inside SBM recipes
Why it needs to be done
OpenRewrite has a large set of recipes available which should be available in SBM.
This allows us to contribute recipes to OpenRewrite and still use them in SBM.
The OpenRewrite recipe org.openrewrite.java.RemoveAnnotation as declared in src/main/resources/recipes/test-recipe.yaml is applied and the annotation was removed
Adds a class RewriteRecipeLoader which is currently disabled to not list all OpenRewrite recipes found as applicable recipes, see Provide a way to categorize and/or tag recipes #185. Enabling (add Component annotation) this class again will list all OpenRewrite recipes in the Shell
Allows to integrate OpenRewrite recipes in SBM by name
Allows to integrate OpenRewrite recipe snippets in SBM YAML syntax
What needs to be done
OpenRewrite recipes should be runnable from within SBM.
It should also be possible to use OpenRewrite recipes inside SBM recipes
Why it needs to be done
OpenRewrite has a large set of recipes available which should be available in SBM.
This allows us to contribute recipes to OpenRewrite and still use them in SBM.
Acceptance Criteria
Reference OpenRewrite recipe by name
Given
Java class
SBM YAML recipe (
src/main/resources/recipes/test-recipe.yaml
)When
Recipe is applied
apply test-recipe
Then
The OpenRewrite recipe
org.openrewrite.java.RemoveAnnotation
as declared insrc/main/resources/recipes/test-recipe.yaml
is applied and the annotation was removedJava class
Reference OpenRewrite recipe by name
Given
Java class
SBM YAML recipe (
src/main/resources/recipes/test-recipe.yaml
)OpenRewrite recipe (
src/main/resources/META-INF/rewrite/test-recipe.yml
)When
Recipe is applied
apply test-recipe
Then
The OpenRewrite recipe
src/main/resources/META-INF/rewrite/test-recipe.yml
was applied and the@Deprecated
annotation was removedJava class
Additional Information
The text was updated successfully, but these errors were encountered: