Fix missing entry for NeoForge in the jar resolution step (#4)
* add neoforge support * move extension from closure to action to better support kotlin dsl * add neoforge to the readme.md * add missing entry in plugin apply method for neoforge jar resolution
This commit is contained in:
@@ -60,7 +60,7 @@ fusioner {
|
||||
|
||||
// NeoForge Project
|
||||
neoforge {
|
||||
projectName = "NeoForge" // The name of the project that contains the fabric code
|
||||
projectName = "NeoForge" // The name of the project that contains the neoforge code
|
||||
inputTaskName = "remapJar" // The name of the build task for the neoforge project
|
||||
// OR
|
||||
// inputFile = "NeoForge/build/libs/MyMod-NeoForge-1.0.jar" // Use a custom jar input
|
||||
|
@@ -61,6 +61,18 @@ public class ModFusionerPlugin implements Plugin<Project> {
|
||||
);
|
||||
}
|
||||
|
||||
if (modFusionerExtension.getNeoforgeConfiguration() != null
|
||||
&& modFusionerExtension.getNeoforgeConfiguration().inputTaskName != null
|
||||
&& !modFusionerExtension.getNeoforgeConfiguration().inputTaskName.isEmpty()) {
|
||||
if (ccc.getName().equals(modFusionerExtension.getNeoforgeConfiguration().getProjectName()))
|
||||
resolveInputTasks(
|
||||
ccc,
|
||||
modFusionerExtension.getNeoforgeConfiguration().getInputTaskName(),
|
||||
modFusionerExtension.getNeoforgeConfiguration().getProjectName(),
|
||||
task
|
||||
);
|
||||
}
|
||||
|
||||
if (modFusionerExtension.getFabricConfiguration() != null
|
||||
&& modFusionerExtension.getFabricConfiguration().inputTaskName != null
|
||||
&& !modFusionerExtension.getFabricConfiguration().inputTaskName.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user