Class GTNHGradlePlugin

java.lang.Object
com.gtnewhorizons.gtnhgradle.GTNHGradlePlugin
All Implemented Interfaces:
Plugin<Project>

public class GTNHGradlePlugin extends Object implements Plugin<Project>
The main GTNH buildscript plugin object. You can access it in the buildscript as gtnhGradle and use it to activate specific modules manually. The GTNH project will use the GTNHConventionPlugin that automatically activates all modules.
  • Field Details

    • PROJECT_EXT_NAME

      public static final String PROJECT_EXT_NAME
      Name of the project extension you can use to
      See Also:
  • Constructor Details

    • GTNHGradlePlugin

      public GTNHGradlePlugin()
  • Method Details

    • apply

      public void apply(Project project)
      Ran by Gradle when the plugin is applied to the project. This applies the Java library and RetroFuturaGradle plugins, for the plugin to do anything else modules need to be opted-in using other functions in this class.
      Specified by:
      apply in interface Plugin<Project>