From eb2b467c3e20c90e95702d6df81df39c299f8aaf Mon Sep 17 00:00:00 2001 From: LambdAurora Date: Sun, 10 Nov 2024 11:55:57 +0100 Subject: [PATCH] Re-introduce tab indentation to FMJs. --- .../src/main/kotlin/lambdynamiclights/task/GenerateFmjTask.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_logic/src/main/kotlin/lambdynamiclights/task/GenerateFmjTask.kt b/build_logic/src/main/kotlin/lambdynamiclights/task/GenerateFmjTask.kt index 3161c0d7..3f3be76b 100644 --- a/build_logic/src/main/kotlin/lambdynamiclights/task/GenerateFmjTask.kt +++ b/build_logic/src/main/kotlin/lambdynamiclights/task/GenerateFmjTask.kt @@ -1,5 +1,6 @@ package lambdynamiclights.task +import com.google.gson.FormattingStyle import com.google.gson.Gson import com.google.gson.GsonBuilder import lambdynamiclights.data.Fmj @@ -39,7 +40,7 @@ abstract class GenerateFmjTask @Inject constructor() : DefaultTask() { companion object { val GSON: Gson = GsonBuilder() .registerTypeAdapter(Fmj::class.java, Fmj.Serializer()) - .setPrettyPrinting() + .setFormattingStyle(FormattingStyle.PRETTY.withIndent("\t")) .create() } }