From 77e32ba3fa523adf020d1326b47a7201d8617de8 Mon Sep 17 00:00:00 2001 From: AlexIIL Date: Tue, 21 Jan 2020 20:00:03 +0000 Subject: [PATCH] Pretty-print fabric.mod.json. (#174) --- src/main/java/net/fabricmc/loom/util/ModProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loom/util/ModProcessor.java b/src/main/java/net/fabricmc/loom/util/ModProcessor.java index 99b6c8d..795ce3a 100644 --- a/src/main/java/net/fabricmc/loom/util/ModProcessor.java +++ b/src/main/java/net/fabricmc/loom/util/ModProcessor.java @@ -38,6 +38,7 @@ import java.util.jar.JarFile; import java.util.zip.ZipEntry; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import org.apache.commons.io.IOUtils; @@ -56,7 +57,7 @@ import net.fabricmc.tinyremapper.OutputConsumerPath; import net.fabricmc.tinyremapper.TinyRemapper; public class ModProcessor { - private static final Gson GSON = new Gson(); + private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create(); public static void processMod(File input, File output, Project project, Configuration config, ResolvedArtifact artifact) throws IOException { if (output.exists()) {