Class ModernJavaModule

java.lang.Object
com.gtnewhorizons.gtnhgradle.modules.ModernJavaModule
All Implemented Interfaces:
GTNHModule

public abstract class ModernJavaModule extends Object implements GTNHModule
Support module for modern Java runs via lwjgl3ify
  • Field Details

    • JAVA_17_ARGS

      public final String[] JAVA_17_ARGS
      Default Java 17 JVM arguments
    • HOTSWAP_JVM_ARGS

      public final String[] HOTSWAP_JVM_ARGS
      Default Java HotSwapAgent JVM arguments
  • Constructor Details

    • ModernJavaModule

      public ModernJavaModule()
  • Method Details

    • getToolchainService

      @Inject public abstract JavaToolchainService getToolchainService()
      Returns:
      Gradle-provided
    • isEnabled

      public boolean isEnabled(@NotNull @NotNull PropertiesConfiguration configuration)
      Specified by:
      isEnabled in interface GTNHModule
      Parameters:
      configuration - The project configuration
      Returns:
      If this module should be enabled for the input project settings
    • apply

      public void apply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull @NotNull Project project) throws Throwable
      Description copied from interface: GTNHModule
      Activates this module on the given project.
      Specified by:
      apply in interface GTNHModule
      Parameters:
      gtnh - The GTNH extension providing access to various gradle services and configuration
      project - The project to activate the module on
      Throws:
      Throwable - Any exception to allow easier module writing