Skip to content

Commit e4527fe

Browse files
committed
Fix reorderImports not working
1 parent 5ae6a5d commit e4527fe

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

plugin-gradle/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
55
## [Unreleased]
66
### Changes
77
* Bump default `ktlint` version to latest `1.0.0` -> `1.0.1`. ([#1855](https://github.com/diffplug/spotless/pull/1855))
8+
### Fixed
9+
* Fix `GoogleJavaFormatConfig.reorderImports` not working. ([#1872](https://github.com/diffplug/spotless/issues/1872))
810

911
## [6.22.0] - 2023-09-28
1012
### Added

plugin-gradle/src/main/java/com/diffplug/gradle/spotless/JavaExtension.java

+1
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public GoogleJavaFormatConfig reflowLongStrings(boolean reflowLongStrings) {
211211

212212
public GoogleJavaFormatConfig reorderImports(boolean reorderImports) {
213213
this.reorderImports = reorderImports;
214+
replaceStep(createStep());
214215
return this;
215216
}
216217

0 commit comments

Comments
 (0)