Class RewritePlugin

java.lang.Object
org.openrewrite.gradle.RewritePlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class RewritePlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
When applied to the root project of a multi-project build, applies to all subprojects. When applied to the root project the "rewrite" configuration and "rewrite" DSL created in the root project apply to all parts of the build. When applied to a subproject of a multi-project build, applies only to that subproject. Creates "rewrite" dependency configuration and "rewrite" DSL in and applicable to only that subproject.
  • Constructor Details

    • RewritePlugin

      public RewritePlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>