From f9d08fec41224c452a0c93aa422364a0d8469a76 Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 2 Nov 2023 17:18:48 +0800 Subject: [PATCH] Fix reorderImports not working --- .../main/java/com/diffplug/gradle/spotless/JavaExtension.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/JavaExtension.java b/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/JavaExtension.java index c576eb7da8..ca73508f27 100644 --- a/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/JavaExtension.java +++ b/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/JavaExtension.java @@ -211,6 +211,7 @@ public GoogleJavaFormatConfig reflowLongStrings(boolean reflowLongStrings) { public GoogleJavaFormatConfig reorderImports(boolean reorderImports) { this.reorderImports = reorderImports; + replaceStep(createStep()); return this; }