Add plugin-invoker-* for Maven, Gradle, and Polyglot projects.
RewritePlugin, RewriteGradlePlugin, and RewriteMavenPlugin provide a fluent API to execute OpenRewrite recipes from Java applications using Maven or Gradle.
Pat baseDir = ...
PluginInvocationResult result = RewritePlugin.run()
.gradlePluginVersion("6.10.0")
.recipes("recipe-1", "recipe-2")
.dependencies("groupId:artifactId:version")
.withMemory("18M", "280M")
.withDebug()
.withDebugging(5007, false)
.onDir(baseDir);
Add
plugin-invoker-*
for Maven, Gradle, and Polyglot projects.RewritePlugin
,RewriteGradlePlugin
, andRewriteMavenPlugin
provide a fluent API to execute OpenRewrite recipes from Java applications using Maven or Gradle.