Class RewritePlugin

  • All Implemented Interfaces:
    org.gradle.api.Plugin<org.gradle.api.Project>

    public class RewritePlugin
    extends java.lang.Object
    implements org.gradle.api.Plugin<org.gradle.api.Project>
    Adds the RewriteExtension to the current project and registers tasks per-sourceSet that implement rewrite fixing and warning. Only needs to be applied to projects with java sources. No point in applying this to any project that does not have java sources of its own, such as the root project in a multi-project builds.
    • Constructor Summary

      Constructors 
      Constructor Description
      RewritePlugin()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(org.gradle.api.Project project)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RewritePlugin

        public RewritePlugin()
    • Method Detail

      • apply

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