Class Util

java.lang.Object
net.minecraftforge.gradleutils.shared.SharedUtil
net.minecraftforge.forgedev.Util

public final class Util extends net.minecraftforge.gradleutils.shared.SharedUtil
  • Field Summary

    Fields inherited from class net.minecraftforge.gradleutils.shared.SharedUtil

    LAUNCHER_EXECUTABLE
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends TaskProvider<?>>
    T
    runFirst(Project project, T task)
    Ensures that a given task is run first in the task graph for the given project.

    Methods inherited from class net.minecraftforge.gradleutils.shared.SharedUtil

    ensureAfterEvaluate, ensureAfterEvaluate, finalizeProperty, finalizeProperty, launcherFor, launcherFor, launcherForStrictly, launcherForStrictly, launcherForStrictly, launcherForStrictly, setOptional, toLog, toString, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • runFirst

      public static <T extends TaskProvider<?>> T runFirst(Project project, T task)

      Ensures that a given task is run first in the task graph for the given project.

      This does not break the configuration cache as long as the task is always applied using this.

      Parameters:
      project - The project
      task - The task to run first