Class AbstractRewriteMojo

    • Field Detail

      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
      • activeRecipes

        @Parameter(property="activeRecipes")
        protected Set<String> activeRecipes
    • Constructor Detail

      • AbstractRewriteMojo

        public AbstractRewriteMojo()
    • Method Detail

      • environment

        protected org.openrewrite.Environment environment()
                                                   throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • listChanges

        protected AbstractRewriteMojo.ChangesContainer listChanges()
                                                            throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • listJavaSources

        protected List<Path> listJavaSources​(String sourceDirectory)
                                      throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • logVisitorsThatMadeChanges

        protected void logVisitorsThatMadeChanges​(org.openrewrite.Change change)