Class ModDevPlugin

java.lang.Object
net.neoforged.moddevgradle.internal.ModDevPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class ModDevPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
The main plugin class.
  • Field Details

    • CONFIGURATION_RUNTIME_DEPENDENCIES

      public static final String CONFIGURATION_RUNTIME_DEPENDENCIES
      Name of the configuration in which we place the required dependencies to develop mods for use in the runtime-classpath. We cannot use "runtimeOnly", since the contents of that are published.
      See Also:
    • CONFIGURATION_COMPILE_DEPENDENCIES

      public static final String CONFIGURATION_COMPILE_DEPENDENCIES
      Name of the configuration in which we place the required dependencies to develop mods for use in the compile-classpath. While compile only is not published, we also use a configuration here to be consistent.
      See Also:
  • Constructor Details

    • ModDevPlugin

      public ModDevPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
    • setupTesting

      public void setupTesting()