Class ModDevPlugin
java.lang.Object
net.neoforged.moddevgradle.internal.ModDevPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
The main plugin class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the configuration in which we place the required dependencies to develop mods for use in the compile-classpath.static final StringName of the configuration in which we place the required dependencies to develop mods for use in the runtime-classpath. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
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:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-
setupTesting
public void setupTesting()
-