Class FormatJPlugin

java.lang.Object
zone.rong.formatj.gradle.FormatJPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class FormatJPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Applies FormatJ to a Gradle project.

Registers formatJavaApply and formatJavaCheck, and wires the check task into check so an unformatted file fails the build the same way a failing test does.

  • Field Details

  • Constructor Details

    • FormatJPlugin

      public FormatJPlugin()
  • Method Details

    • apply

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