Move all Loom tasks to the "fabric" group (#199)
- cleanLoom: other -> fabric - remapJar: other -> fabric - Removed the "minecraftMapped" group that the run tasks were in: - runClient: minecraftMapped -> fabric - runServer: minecraftMapped -> fabricdev/0.11
parent
7a56779368
commit
bf8dad499d
|
@ -76,6 +76,7 @@ public class LoomGradlePlugin extends AbstractPlugin {
|
||||||
tasks.register("cleanLoomMappings", CleanLoomMappings.class);
|
tasks.register("cleanLoomMappings", CleanLoomMappings.class);
|
||||||
|
|
||||||
tasks.register("cleanLoom").configure(task -> {
|
tasks.register("cleanLoom").configure(task -> {
|
||||||
|
task.setGroup("fabric");
|
||||||
task.dependsOn(tasks.getByName("cleanLoomBinaries"));
|
task.dependsOn(tasks.getByName("cleanLoomBinaries"));
|
||||||
task.dependsOn(tasks.getByName("cleanLoomMappings"));
|
task.dependsOn(tasks.getByName("cleanLoomMappings"));
|
||||||
});
|
});
|
||||||
|
@ -84,7 +85,9 @@ public class LoomGradlePlugin extends AbstractPlugin {
|
||||||
t.getOutputs().upToDateWhen((o) -> false);
|
t.getOutputs().upToDateWhen((o) -> false);
|
||||||
});
|
});
|
||||||
|
|
||||||
tasks.register("remapJar", RemapJarTask.class);
|
tasks.register("remapJar", RemapJarTask.class, t -> {
|
||||||
|
t.setGroup("fabric");
|
||||||
|
});
|
||||||
|
|
||||||
tasks.register("genSourcesDecompile", FernFlowerTask.class, t -> {
|
tasks.register("genSourcesDecompile", FernFlowerTask.class, t -> {
|
||||||
t.getOutputs().upToDateWhen((o) -> false);
|
t.getOutputs().upToDateWhen((o) -> false);
|
||||||
|
@ -165,12 +168,12 @@ public class LoomGradlePlugin extends AbstractPlugin {
|
||||||
|
|
||||||
tasks.register("runClient", RunClientTask.class, t -> {
|
tasks.register("runClient", RunClientTask.class, t -> {
|
||||||
t.dependsOn("jar", "downloadAssets");
|
t.dependsOn("jar", "downloadAssets");
|
||||||
t.setGroup("minecraftMapped");
|
t.setGroup("fabric");
|
||||||
});
|
});
|
||||||
|
|
||||||
tasks.register("runServer", RunServerTask.class, t -> {
|
tasks.register("runServer", RunServerTask.class, t -> {
|
||||||
t.dependsOn("jar");
|
t.dependsOn("jar");
|
||||||
t.setGroup("minecraftMapped");
|
t.setGroup("fabric");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue