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: CHANGES.md
+1
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
13
13
### Added
14
14
* Support for google-java-format 1.8 (including test infrastructure for Java 11). ([#562](https://github.com/diffplug/spotless/issues/562))
15
15
* Improved PaddedCell such that it is as performant as non-padded cell - no reason not to have it always enabled. Deprecated all of `PaddedCellBulk`. ([#561](https://github.com/diffplug/spotless/pull/561))
16
+
* Support for ktfmt 0.13 ([#569](https://github.com/diffplug/spotless/pull/569))
16
17
### Changed
17
18
* Updated a bunch of dependencies, most notably: ([#564](https://github.com/diffplug/spotless/pull/564))
Copy file name to clipboardexpand all lines: plugin-gradle/CHANGES.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
5
5
## [Unreleased]
6
6
### Added
7
7
*[**VS Code Extension**](https://marketplace.visualstudio.com/items?itemName=richardwillis.vscode-spotless-gradle) thanks to [@badsyntax](https://github.com/badsyntax)
8
-
* Support for google-java-format 1.8 (requires you to run build on Java 11) ([#562](https://github.com/diffplug/spotless/issues/562))
8
+
* Support for google-java-format 1.8 (requires build to run on Java 11+) ([#562](https://github.com/diffplug/spotless/issues/562))
9
+
* Support for ktfmt 0.13 (requires build to run on Java 11+) ([#569](https://github.com/diffplug/spotless/pull/569))
9
10
### Changed
10
11
* PaddedCell is now always enabled. It is strictly better than non-padded cell, and there is no performance penalty. [See here](https://github.com/diffplug/spotless/pull/560#issuecomment-621752798) for detailed explanation. ([#561](https://github.com/diffplug/spotless/pull/561))
11
12
* Updated a bunch of dependencies, most notably jgit `5.5.0.201909110433-r` -> `5.7.0.202003110725-r`. ([#564](https://github.com/diffplug/spotless/pull/564))
Copy file name to clipboardexpand all lines: plugin-maven/CHANGES.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
4
4
5
5
## [Unreleased]
6
6
### Added
7
-
* Support for google-java-format 1.8 (requires you to run build on Java 11) ([#562](https://github.com/diffplug/spotless/issues/562))
7
+
* Support for google-java-format 1.8 (requires build to run on Java 11+) ([#562](https://github.com/diffplug/spotless/issues/562))
8
+
* Support for ktfmt 0.13 (requires build to run on Java 11+) ([#569](https://github.com/diffplug/spotless/pull/569))
8
9
*`mvn spotless:apply` is now guaranteed to be idempotent, even if some of the formatters are not. See [`PADDEDCELL.md` for details](https://github.com/diffplug/spotless/blob/master/PADDEDCELL.md) if you're curious. ([#565](https://github.com/diffplug/spotless/pull/565))
9
10
* Updated a bunch of dependencies, most notably jgit `5.5.0.201909110433-r` -> `5.7.0.202003110725-r`. ([#564](https://github.com/diffplug/spotless/pull/564))
Copy file name to clipboardexpand all lines: plugin-maven/README.md
+22
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,8 @@ By default, all files matching `src/main/scala/**/*.scala`, `src/test/scala/**/*
153
153
154
154
By default, all files matching `src/main/kotlin/**/*.kt` and `src/test/kotlin/**/*.kt` Ant style pattern will be formatted. Each element under `<kotlin>` is a step, and they will be applied in the order specified. Every step is optional.
155
155
156
+
### Applying [ktlint](https://github.com/pinterest/ktlint) to Kotlin files
157
+
156
158
```xml
157
159
<configuration>
158
160
<kotlin>
@@ -171,6 +173,26 @@ By default, all files matching `src/main/kotlin/**/*.kt` and `src/test/kotlin/**
171
173
</configuration>
172
174
```
173
175
176
+
### Applying [ktfmt](https://github.com/facebookincubator/ktfmt) to Kotlin files
177
+
178
+
```xml
179
+
<configuration>
180
+
<kotlin>
181
+
<licenseHeader>
182
+
<!-- Specify either content or file, but not both -->
183
+
<content>/* Licensed under Apache-2.0 */</content>
184
+
<file>${basedir}/license-header</file>
185
+
</licenseHeader>
186
+
<endWithNewline/>
187
+
<trimTrailingWhitespace/>
188
+
<ktfmt>
189
+
<!-- Optional, available versions: https://github.com/facebookincubator/ktfmt/releases -->
0 commit comments