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
+2
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ This document is intended for Spotless developers.
10
10
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
11
11
12
12
## [Unreleased]
13
+
### Added
14
+
* Added support for custom JSR223 formatters ([#945](https://github.com/diffplug/spotless/pull/945))
13
15
### Changed
14
16
* Added support and bump Eclipse formatter default versions to `4.21` for `eclipse-cdt`, `eclipse-jdt`, `eclipse-wtp`. Change is only applied for JVM 11+.
Copy file name to clipboardexpand all lines: plugin-maven/CHANGES.md
+2
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
4
4
5
5
## [Unreleased]
6
+
### Added
7
+
* Added support for custom JSR223 formatters ([#945](https://github.com/diffplug/spotless/pull/945))
6
8
### Changed
7
9
* Added support and bump Eclipse formatter default versions to `4.21` for `eclipse-cdt`, `eclipse-jdt`, `eclipse-wtp`. Change is only applied for JVM 11+.
Copy file name to clipboardexpand all lines: plugin-maven/README.md
+6
Original file line number
Diff line number
Diff line change
@@ -767,6 +767,12 @@ to true.
767
767
<spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 -->
768
768
</indent>
769
769
770
+
<jsr223> <!-- specify replacements using JSR223 scripting -->
771
+
<name>Greetings to Mars</name>
772
+
<engine>nashorn</engine> <!-- nashorn is provided by JDK 8-14, other engines can be used if they are on the classpath -->
773
+
<script>source.replace('World','Mars');</script> <!-- the source variable contains the unformatted code, the returned value of the script is the formatted code -->
774
+
</jsr223>
775
+
770
776
<replace> <!-- specify replacements using search and replace -->
0 commit comments