Class AnnotationProcessorInvoker<T extends org.gradle.api.Task>

java.lang.Object
net.fabricmc.loom.build.mixin.AnnotationProcessorInvoker<T>
Direct Known Subclasses:
GroovyApInvoker, JavaApInvoker, KaptApInvoker, ScalaApInvoker

public abstract class AnnotationProcessorInvoker<T extends org.gradle.api.Task> extends Object
Normally javac invokes annotation processors, but when the scala or kapt plugin are installed they will want to invoke the annotation processor themselves. See Java and Kapt implementations for a more deep understanding of the things passed by the children.
  • Field Details

  • Constructor Details

    • AnnotationProcessorInvoker

      protected AnnotationProcessorInvoker(org.gradle.api.Project project, Collection<org.gradle.api.artifacts.Configuration> apConfigurations, Map<org.gradle.api.tasks.SourceSet,org.gradle.api.tasks.TaskProvider<T>> invokerTasks, String name)
  • Method Details

    • getApConfigurations

      protected static Collection<org.gradle.api.artifacts.Configuration> getApConfigurations(org.gradle.api.Project project, Function<org.gradle.api.tasks.SourceSet,String> getApConfigNameFunc)
    • passArgument

      protected abstract void passArgument(T compileTask, String key, String value)
    • getRefmapDestinationDir

      protected abstract File getRefmapDestinationDir(T task)
    • getRefmapDestination

      protected final String getRefmapDestination(T task, String refmapName) throws IOException
      Throws:
      IOException
    • configureMixin

      public void configureMixin()
    • getMixinMappingsForSourceSet

      public static File getMixinMappingsForSourceSet(org.gradle.api.Project project, org.gradle.api.tasks.SourceSet sourceSet)