From 9e681f0bcb484299853cb6be5015bf5f6f0cb090 Mon Sep 17 00:00:00 2001 From: shartte Date: Sat, 15 Jun 2024 00:12:09 +0200 Subject: [PATCH] Fix artifacts not being created when there are no runs. (#20) --- .../net/neoforged/moddevgradle/internal/ModDevPlugin.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java b/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java index e314788b..bff1fe8b 100644 --- a/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java +++ b/src/main/java/net/neoforged/moddevgradle/internal/ModDevPlugin.java @@ -302,7 +302,10 @@ public void apply(Project project) { }))); }); - var ideSyncTask = tasks.register("neoForgeIdeSync"); + var ideSyncTask = tasks.register("neoForgeIdeSync", task -> { + task.setDescription("A utility task that is used to create necessary files when the Gradle project is synchronized with the IDE project."); + task.dependsOn(createArtifacts); + }); Map> prepareRunTasks = new IdentityHashMap<>(); extension.getRuns().configureEach(run -> {