Closed fabapp2 closed 8 months ago
Add a new MavenInvocationRewriteRecipeLauncher to run OpenRewrite recipes using Maven Invoker.
MavenInvocationRewriteRecipeLauncher
InvocationResult result = MavenInvocationRewriteRecipeLauncher .applyRecipes( "org.openrewrite.java.RemoveUnusedImports", "org.openrewrite.java.format.AutoFormat" ) .onDir(baseDir) .withBuildConfig( BuildConfig.builder() .skipTests(true) .withMemory("64M", "256M") .build() ) .withOutputListener(line -> handleLine(line) .dryRun();
Add a new
MavenInvocationRewriteRecipeLauncher
to run OpenRewrite recipes using Maven Invoker.