Skip to content

Commit

Permalink
Fix crash because of a task being configured too early
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Sep 27, 2024
1 parent 1fb1b88 commit 0e72ec8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ private static void setManifestAttributes(Project project, LegacyLoomingExtensio

public static void overrideMigrateTask(Project project) {
// override loom's migrateMappings to fix issues
var migrateTask = project.getTasks().replace("improvedMigrateMappings", MigrateLegacyMappingsTask.class);
migrateTask.setDescription("Migrates mappings to a new version.");
migrateTask.getOutputs().upToDateWhen(o -> false);
project.getTasks().register("improvedMigrateMappings", MigrateLegacyMappingsTask.class, migrateTask -> {
migrateTask.setDescription("Migrates mappings to a new version.");
migrateTask.getOutputs().upToDateWhen(o -> false);
});

}
}

0 comments on commit 0e72ec8

Please sign in to comment.