Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugin-gradle/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
### Fixed
- Fix npm/node executable discovery treating a directory (e.g. an `npm` folder inside `NODE_PATH`) as an executable. ([#3190](https://github.com/diffplug/spotless/issues/3190))
- Fix `Cannot set the value of task ... property 'taskService'` when Spotless is applied to sibling projects but not to their parent, a regression since `8.3.0`. Applying it to the root project with `apply false` is no longer necessary. ([#2877](https://github.com/diffplug/spotless/issues/2877))
### Changes
- README: example for formatting Dockerfiles with prettier and `prettier-plugin-sh`. ([#3158](https://github.com/diffplug/spotless/issues/3158))

## [8.12.0] - 2026-11-21
### Added
Expand Down
5 changes: 5 additions & 0 deletions plugin-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,11 @@ spotless {
prettier(['prettier': '3.0.3', '@prettier/plugin-php': '0.20.1'])
.config(['parser': 'php', 'tabWidth': 3, 'plugins': ['@prettier/plugin-php']])
}
format 'dockerfile', {
target 'Dockerfile', 'docker/*.Dockerfile'
prettier(['prettier': '3.6.2', 'prettier-plugin-sh': '0.20.2'])
.config(['parser': 'dockerfile', 'plugins': ['prettier-plugin-sh']])
}
}
```

Expand Down
2 changes: 2 additions & 0 deletions plugin-maven/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
## [Unreleased]
### Fixed
- Fix npm/node executable discovery treating a directory (e.g. an `npm` folder inside `NODE_PATH`) as an executable. ([#3190](https://github.com/diffplug/spotless/issues/3190))
### Changes
- README: example for formatting Dockerfiles with prettier and `prettier-plugin-sh`. ([#3158](https://github.com/diffplug/spotless/issues/3158))

## [3.12.0] - 2026-11-21
### Changes
Expand Down
19 changes: 19 additions & 0 deletions plugin-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,25 @@ Since spotless uses the actual npm prettier package behind the scenes, it is pos
</prettier>
</format>

<!-- prettier with sh-plugin, for Dockerfiles -->
<format>
<includes>
<include>Dockerfile</include>
<include>docker/*.Dockerfile</include>
</includes>

<prettier>
<devDependencies>
<prettier>3.6.2</prettier>
<prettier-plugin-sh>0.20.2</prettier-plugin-sh>
</devDependencies>
<config>
<parser>dockerfile</parser>
<plugins>prettier-plugin-sh</plugins>
</config>
</prettier>
</format>

</formats>
</configuration>
```
Expand Down
Loading