You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugin-gradle/CHANGES.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
4
4
5
5
## [Unreleased]
6
6
### Added
7
+
*`removeUnusedImport` can be configured to rely on `cleanthat-javaparser-unnecessaryimport`. Default remains `google-java-format`. ([#1589](https://github.com/diffplug/spotless/pull/1589))
8
+
### Changes
9
+
* Bump default `cleanthat` version to latest `2.6` -> `2.8`. ([#1589](https://github.com/diffplug/spotless/pull/1589)
7
10
* Support configuration of mirrors for P2 repositories ([#1629](https://github.com/diffplug/spotless/issues/1629)):
Copy file name to clipboardExpand all lines: plugin-maven/CHANGES.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,13 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
4
4
5
5
## [Unreleased]
6
6
### Added
7
+
*`removeUnusedImport` can be configured to rely on `cleanthat-javaparser-unnecessaryimport`. Default remains `google-java-format`. ([#1589](https://github.com/diffplug/spotless/pull/1589))
7
8
* The `style` option in Palantir Java Format ([#1654](https://github.com/diffplug/spotless/pull/1654)).
8
9
* Added support for Gherkin feature files ([#1649](https://github.com/diffplug/spotless/issues/1649)).
9
10
### Fixed
10
11
* Fix non deterministic computation of cache fingerprint when using multiple formatters. ([#1643](https://github.com/diffplug/spotless/pull/1643) fixes [#1642](https://github.com/diffplug/spotless/pull/1642))
11
12
### Changes
13
+
* Bump default `cleanthat` version to latest `2.6` -> `2.8`. ([#1589](https://github.com/diffplug/spotless/pull/1589)
12
14
***POTENTIALLY BREAKING** Drop support for `googleJavaFormat` versions <`1.8`. ([#1630](https://github.com/diffplug/spotless/pull/1630))
13
15
* Bump default `googleJavaFormat` version `1.15.0` -> `1.16.0`. ([#1630](https://github.com/diffplug/spotless/pull/1630))
Copy file name to clipboardExpand all lines: plugin-maven/README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,14 @@ any other maven phase (i.e. compile) then it can be configured as below;
208
208
</configuration>
209
209
```
210
210
211
+
### removeUnusedImports
212
+
213
+
```xml
214
+
<removeUnusedImports>
215
+
<engine>google-java-format</engine> <!-- optional. Defaults to `google-java-format`. Can be switched to `cleanthat-javaparser-unnecessaryimport` (e.g. to process JDK17 source files with a JDK8+ Runtime) -->
@@ -285,17 +293,18 @@ These mechanisms already exist for the Gradle plugin.
285
293
286
294
```xml
287
295
<cleanthat>
288
-
<version>2.0</version> <!-- optional version of Cleanthat -->
296
+
<version>2.8</version> <!-- optional version of Cleanthat -->
289
297
<sourceJdk>${maven.compiler.source}</sourceJdk> <!-- optional. Default to ${maven.compiler.source} else '1.7' -->
290
298
<mutators>
291
-
<mutator>*</mutator> <!-- optional. Default to '*' to include all mutators -->
299
+
<mutator>SafeAndConsensual</mutator> <!-- optional. Default to 'SafeAndConsensual' to include all mutators -->
292
300
</mutators>
293
-
<mutators> <!-- List of mutators: https://github.com/solven-eu/cleanthat/tree/master/java/src/main/java/eu/solven/cleanthat/engine/java/refactorer/mutators-->
301
+
<mutators> <!-- List of mutators: https://github.com/solven-eu/cleanthat/blob/master/MUTATORS.generated.MD-->
294
302
<mutator>LiteralsFirstInComparisons</mutator> <!-- You may alternatively list the requested mutators -->
295
303
</mutators>
296
304
<excludedMutators>
297
305
<excludedMutator>OptionalNotEmpty</excludedMutator> <!-- You can discard specific rules -->
298
306
</excludedMutators>
307
+
<includeDraft>false</includeDraft> <!-- optional. Default to false, not to include draft mutators from Composite mutators -->
0 commit comments