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 -> fabric
This commit is contained in:
Juuxel 2020-05-14 03:10:08 +03:00 committed by GitHub
parent 7a56779368
commit bf8dad499d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,7 @@ public class LoomGradlePlugin extends AbstractPlugin {
tasks.register("cleanLoomMappings", CleanLoomMappings.class);
tasks.register("cleanLoom").configure(task -> {
task.setGroup("fabric");
task.dependsOn(tasks.getByName("cleanLoomBinaries"));
task.dependsOn(tasks.getByName("cleanLoomMappings"));
});
@ -84,7 +85,9 @@ public class LoomGradlePlugin extends AbstractPlugin {
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 -> {
t.getOutputs().upToDateWhen((o) -> false);
@ -165,12 +168,12 @@ public class LoomGradlePlugin extends AbstractPlugin {
tasks.register("runClient", RunClientTask.class, t -> {
t.dependsOn("jar", "downloadAssets");
t.setGroup("minecraftMapped");
t.setGroup("fabric");
});
tasks.register("runServer", RunServerTask.class, t -> {
t.dependsOn("jar");
t.setGroup("minecraftMapped");
t.setGroup("fabric");
});
}
}