From 2e219de0206f533772d336facf51678e847dcb6d Mon Sep 17 00:00:00 2001 From: salma-samy Date: Fri, 31 Mar 2023 14:10:11 -0700 Subject: [PATCH] Make lockfile human readable PiperOrigin-RevId: 521009432 Change-Id: I2b2e5e0c845f05c428ff8772aba2abce72a3830f --- .../devtools/build/lib/bazel/bzlmod/GsonTypeAdapterUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/GsonTypeAdapterUtil.java b/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/GsonTypeAdapterUtil.java index 4832c117d8d0d9..09fcafc2b16d89 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/GsonTypeAdapterUtil.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/GsonTypeAdapterUtil.java @@ -109,6 +109,7 @@ public Registry read(JsonReader jsonReader) throws IOException { private static final GsonBuilder adapterGson = new GsonBuilder() + .setPrettyPrinting() .registerTypeAdapterFactory(GenerateTypeAdapter.FACTORY) .registerTypeAdapterFactory(DICT) .registerTypeAdapterFactory(IMMUTABLE_MAP)