Skip to content

Commit 816f879

Browse files
committed
Bump Ktlint to 1.7.1
1 parent a7c9e60 commit 816f879

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1515
* Bump JGit from `6.10.1` to `7.3.0` ([#2257](https://github.com/diffplug/spotless/pull/2257))
1616
* Adds support for worktrees (fixes [#1765](https://github.com/diffplug/spotless/issues/1765))
1717
* Bump default `google-java-format` version to latest `1.24.0` -> `1.28.0`. ([#2345](https://github.com/diffplug/spotless/pull/2345))
18+
* Bump default `ktlint` version to latest `1.5.0` -> `1.7.1`. ([#2555](https://github.com/diffplug/spotless/pull/2555))
1819

1920
## [3.3.1] - 2025-07-21
2021
### Fixed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2024 DiffPlug
2+
* Copyright 2016-2025 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,14 +36,13 @@
3636
/** Wraps up <a href="https://github.com/pinterest/ktlint">ktlint</a> as a FormatterStep. */
3737
public class KtLintStep implements Serializable {
3838
private static final long serialVersionUID = 1L;
39-
private static final String DEFAULT_VERSION = "1.5.0";
39+
private static final String DEFAULT_VERSION = "1.7.1";
4040
private static final String NAME = "ktlint";
4141
private static final String MAVEN_COORDINATE_0_DOT = "com.pinterest:ktlint:";
4242
private static final String MAVEN_COORDINATE_1_DOT = "com.pinterest.ktlint:ktlint-cli:";
4343

4444
private final JarState.Promised jarState;
45-
@Nullable
46-
private final FileSignature.Promised config;
45+
@Nullable private final FileSignature.Promised config;
4746
private final Map<String, Object> editorConfigOverride;
4847
private final String version;
4948

@@ -95,8 +94,7 @@ private static final class State implements Serializable {
9594
private final JarState jarState;
9695
private final TreeMap<String, Object> editorConfigOverride;
9796
private final String version;
98-
@Nullable
99-
private final FileSignature editorConfigPath;
97+
@Nullable private final FileSignature editorConfigPath;
10098

10199
State(String version,
102100
JarState jarState,

plugin-gradle/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
88
* Bump JGit from `6.10.1` to `7.3.0` ([#2257](https://github.com/diffplug/spotless/pull/2257))
99
* Adds support for worktrees (fixes [#1765](https://github.com/diffplug/spotless/issues/1765))
1010
* Bump default `google-java-format` version to latest `1.24.0` -> `1.28.0`. ([#2345](https://github.com/diffplug/spotless/pull/2345))
11+
* Bump default `ktlint` version to latest `1.5.0` -> `1.7.1`. ([#2555](https://github.com/diffplug/spotless/pull/2555))
1112

1213
## [7.2.1] - 2025-07-21
1314
### Fixed

plugin-maven/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
88
* Bump JGit from `6.10.1` to `7.3.0` ([#2257](https://github.com/diffplug/spotless/pull/2257))
99
* Adds support for worktrees (fixes [#1765](https://github.com/diffplug/spotless/issues/1765))
1010
* Bump default `google-java-format` version to latest `1.24.0` -> `1.28.0`. ([#2345](https://github.com/diffplug/spotless/pull/2345))
11+
* Bump default `ktlint` version to latest `1.5.0` -> `1.7.1`. ([#2555](https://github.com/diffplug/spotless/pull/2555))
1112

1213
## [2.46.1] - 2025-07-21
1314
### Fixed

0 commit comments

Comments
 (0)