Class SpotlessInterop

java.lang.Object
com.palantir.javaformat.gradle.SpotlessInterop
All Implemented Interfaces:
org.gradle.api.Action<com.diffplug.gradle.spotless.JavaExtension>

public abstract class SpotlessInterop extends Object implements org.gradle.api.Action<com.diffplug.gradle.spotless.JavaExtension>
Class that exists only to encapsulate accessing spotless classes, so that Gradle can generate a decorated class for PalantirJavaFormatSpotlessPlugin even if spotless is not on the classpath.
  • Constructor Details

    • SpotlessInterop

      @Inject public SpotlessInterop(Supplier<com.palantir.javaformat.java.FormatterService> formatterService)
  • Method Details

    • getNativeImageSupport

      protected abstract NativeImageSupport getNativeImageSupport()
    • getConfigurations

      @Inject protected abstract org.gradle.api.artifacts.ConfigurationContainer getConfigurations()
    • execute

      public void execute(com.diffplug.gradle.spotless.JavaExtension java)
      Specified by:
      execute in interface org.gradle.api.Action<com.diffplug.gradle.spotless.JavaExtension>