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
dev/0.11
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
1 changed files with 6 additions and 3 deletions

View File

@ -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");
}); });
} }
} }