Skip to content

Commit 2921626

Browse files
authored
Merge branch 'main' into fix/jgit-system-config
2 parents b2e71f4 + 9cbdac8 commit 2921626

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
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
### Fixed
1213
* Respect system gitconfig when performing git operations ([#2404](https://github.com/diffplug/spotless/issues/2404))
1314

plugin-gradle/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ spotless {
548548
)
549549
.customRuleSets(
550550
listOf(
551-
"io.nlopez.compose.rules:ktlint:0.4.16"
551+
"io.nlopez.compose.rules:ktlint:0.4.25"
552552
)
553553
)
554554
}

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/KotlinExtensionTest.java

Lines changed: 2 additions & 2 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.
@@ -178,7 +178,7 @@ void withCustomRuleSetApply() throws IOException {
178178
" kotlin {",
179179
" ktlint(\"1.0.1\")",
180180
" .customRuleSets(listOf(",
181-
" \"io.nlopez.compose.rules:ktlint:0.4.16\"",
181+
" \"io.nlopez.compose.rules:ktlint:0.4.25\"",
182182
" ))",
183183
" .editorConfigOverride(mapOf(",
184184
" \"ktlint_function_naming_ignore_when_annotated_with\" to \"Composable\"",

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

plugin-maven/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ Additionally, `editorConfigOverride` options will override what's supplied in `.
499499
<ktlint_code_style>intellij_idea</ktlint_code_style>
500500
</editorConfigOverride>
501501
<customRuleSets> <!-- optional -->
502-
<value>io.nlopez.compose.rules:ktlint:0.4.16</value>
502+
<value>io.nlopez.compose.rules:ktlint:0.4.25</value>
503503
</customRuleSets>
504504
</ktlint>
505505
```

plugin-maven/src/test/java/com/diffplug/spotless/maven/kotlin/KtlintTest.java

Lines changed: 2 additions & 2 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.
@@ -80,7 +80,7 @@ void testSetEditorConfigCanOverrideEditorConfigFile() throws Exception {
8080
void testWithCustomRuleSetApply() throws Exception {
8181
writePomWithKotlinSteps("<ktlint>\n" +
8282
" <customRuleSets>\n" +
83-
" <value>io.nlopez.compose.rules:ktlint:0.4.16</value>\n" +
83+
" <value>io.nlopez.compose.rules:ktlint:0.4.25</value>\n" +
8484
" </customRuleSets>\n" +
8585
" <editorConfigOverride>\n" +
8686
" <ktlint_function_naming_ignore_when_annotated_with>Composable</ktlint_function_naming_ignore_when_annotated_with>\n" +

0 commit comments

Comments
 (0)