Skip to content

Commit cfe2cf4

Browse files
committed
Change the verbiage around minimum required version.
1 parent 6d1e35d commit cfe2cf4

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

CHANGES.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1212
## [Unreleased]
1313
### Added
1414
* Support for `MAC_CLASSIC` (`\r`) line ending ([#1243](https://github.com/diffplug/spotless/pull/1243) fixes [#1196](https://github.com/diffplug/spotless/issues/1196))
15-
### Fixed
16-
* Bump default `diktat` version to latest `1.1.0` -> `1.2.1`. ([saveourtool/diktat#1399](https://github.com/saveourtool/diktat/issues/1399))
17-
* Note that support `diktat` version `1.2.1` is or higher
18-
* The property `userData` is removed
15+
### Changed
16+
* Minimum required `diktat` version bumped to `1.2.1` ([#1246](https://github.com/diffplug/spotless/pull/1246))
17+
* Default bumped from `1.1.0` -> `1.2.1`
1918

2019
## [2.26.2] - 2022-06-11
2120
### Fixed

lib/src/main/java/com/diffplug/spotless/kotlin/DiktatStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static FormatterStep createForScript(String versionDiktat, Provisioner pr
5959

6060
public static FormatterStep create(String versionDiktat, Provisioner provisioner, boolean isScript, @Nullable FileSignature config) {
6161
if (BadSemver.version(versionDiktat) < BadSemver.version(MIN_SUPPORTED_VERSION)) {
62-
throw new IllegalStateException("Diktat supported for version " + MIN_SUPPORTED_VERSION + " and later");
62+
throw new IllegalStateException("Minimum required Diktat version is " + MIN_SUPPORTED_VERSION + ", you tried " + versionDiktat + " which is too old");
6363
}
6464
Objects.requireNonNull(versionDiktat, "versionDiktat");
6565
Objects.requireNonNull(provisioner, "provisioner");

plugin-gradle/CHANGES.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
55
## [Unreleased]
66
### Added
77
* Support for `MAC_CLASSIC` (`\r`) line ending ([#1243](https://github.com/diffplug/spotless/pull/1243) fixes [#1196](https://github.com/diffplug/spotless/issues/1196))
8-
### Fixed
9-
* Bump default `diktat` version to latest `1.1.0` -> `1.2.1`. ([saveourtool/diktat#1399](https://github.com/saveourtool/diktat/issues/1399))
10-
* Note that support `diktat` version `1.2.1` is or higher
11-
* The property `userData` is removed
8+
### Changed
9+
* Minimum required `diktat` version bumped to `1.2.1` ([#1246](https://github.com/diffplug/spotless/pull/1246))
10+
* Default bumped from `1.1.0` -> `1.2.1`
1211

1312
## [6.7.2] - 2022-06-11
1413
### Fixed

plugin-maven/CHANGES.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
55
## [Unreleased]
66
### Added
77
* Support for `MAC_CLASSIC` (`\r`) line ending ([#1243](https://github.com/diffplug/spotless/pull/1243) fixes [#1196](https://github.com/diffplug/spotless/issues/1196))
8-
### Fixed
9-
* Bump default `diktat` version to latest `1.1.0` -> `1.2.1`. ([saveourtool/diktat#1399](https://github.com/saveourtool/diktat/issues/1399))
10-
* Note that support `diktat` version `1.2.1` is or higher
11-
* The property `userData` is removed
8+
### Changed
9+
* Minimum required `diktat` version bumped to `1.2.1` ([#1246](https://github.com/diffplug/spotless/pull/1246))
10+
* Default bumped from `1.1.0` -> `1.2.1`
1211

1312
## [2.22.8] - 2022-06-11
1413
### Fixed

0 commit comments

Comments
 (0)