Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add openrewrite support to Shepherd #915

Open
kavitha186 opened this issue Dec 5, 2024 · 0 comments
Open

Add openrewrite support to Shepherd #915

kavitha186 opened this issue Dec 5, 2024 · 0 comments
Assignees

Comments

@kavitha186
Copy link
Collaborator

kavitha186 commented Dec 5, 2024

It would be great if we can activate the openrewrite recipes across multiple repos and run the recipes to apply the changes on the codebase https://docs.openrewrite.org/

To add this feature, we might need to add 2 commands

  1. activateRewriteRecipe - recipe to be activated on the repository
    Recipe catalog: https://docs.openrewrite.org/recipes

  2. runRewriteRecipe - Run a command "rewriteRun" on project root to apply the recipe changes

Activate Rewrite Recipe should support args as recipe name for both maven and gradle project
Eg: rewrite {
activeRecipe(
'org.openrewrite.java.OrderImports',
)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants