Skip to content

Commit 4bb4efb

Browse files
authored
Bump Ktlint to 1.4.0 (#2314)
1 parent 7676b18 commit 4bb4efb

File tree

8 files changed

+11
-5
lines changed

8 files changed

+11
-5
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This document is intended for Spotless developers.
1010
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
1111

1212
## [Unreleased]
13+
### Added
14+
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
1315

1416
## [3.0.0.BETA4] - 2024-10-24
1517
### Added

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
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.3.0";
39+
private static final String DEFAULT_VERSION = "1.4.0";
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:";

plugin-gradle/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
### Added
7+
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
68

79
## [7.0.0.BETA4] - 2024-10-24
810
### Added

plugin-gradle/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ spotless {
460460
)
461461
.customRuleSets(
462462
listOf(
463-
"io.nlopez.compose.rules:ktlint:0.3.3"
463+
"io.nlopez.compose.rules:ktlint:0.4.16"
464464
)
465465
)
466466
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.3.3\"",
181+
" \"io.nlopez.compose.rules:ktlint:0.4.16\"",
182182
" ))",
183183
" .editorConfigOverride(mapOf(",
184184
" \"ktlint_function_naming_ignore_when_annotated_with\" to \"Composable\"",

plugin-maven/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
44

55
## [Unreleased]
6+
### Added
7+
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
68

79
## [2.44.0.BETA4] - 2024-10-24
810
### Added

plugin-maven/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ Additionally, `editorConfigOverride` options will override what's supplied in `.
430430
<ktlint_code_style>intellij_idea</ktlint_code_style>
431431
</editorConfigOverride>
432432
<customRuleSets> <!-- optional -->
433-
<value>io.nlopez.compose.rules:ktlint:0.3.3</value>
433+
<value>io.nlopez.compose.rules:ktlint:0.4.16</value>
434434
</customRuleSets>
435435
</ktlint>
436436
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.3.3</value>\n" +
83+
" <value>io.nlopez.compose.rules:ktlint:0.4.16</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)