Cli for build independent usage? #834
-
Any current work or ideas around having a openrewrite cli one Can Use to apply rewrite rules no matter what build system is in use ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @maxandersen! It's technically possible, but what is tough is that to properly type attribute all Java ASTs you have to determine what the binary and project dependencies are for each project + source set in a repository. And determine what those projects and source sets are in the first place. These are of course precisely what build tools are responsible for, so the easiest integration is certainly there. For Maven projects in particular we do have For operating en masse across lots of repos (outside of the build), we produce a serialized AST artifact and add that to moderne.io, where we have the whole catalog of recipes that can run across these ASTs and produce PRs and commits and such. We do have a public instance of this that can consume any public repos you'd like -- just have a bit of a waitlist to onboard folks as we continue to scale it out. Feel free to request a beta invite there if you'd like. |
Beta Was this translation helpful? Give feedback.
-
Actually managed to make one based on maven plugin (gradles nested classloader code was discouraging :) |
Beta Was this translation helpful? Give feedback.
-
Hi @maxandersen ! Appreciate you're looking to make it easier to run OpenRewrite recipes, and the work you did on The good news is we're now also looking to do the same, as announced publicly. |
Beta Was this translation helpful? Give feedback.
Hi @maxandersen ! Appreciate you're looking to make it easier to run OpenRewrite recipes, and the work you did on
rewrite-jbang
to that end so far.The good news is we're now also looking to do the same, as announced publicly.
So keep an eye out until the day we're ready to share those efforts with you!