Skip to content

Commit 31d85e9

Browse files
committed
Say that the Gradle plugin runs the native binary on Windows too
The plugin now runs the native formatter on Windows x86-64 as well (openjavaformat/open-java-format#28), so the Gradle page and the home page list Windows next to Linux and macOS. The change ships with the next release: until then the 2.98.0.2 plugin ignores the property on Windows.
1 parent e848f50 commit 31d85e9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/get-started/gradle.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ of the two settings below, `formatDiff` fails with an `IllegalAccessError` that
4646
```
4747

4848
Gradle then runs the formatter as a native binary, outside its own JVM. This works on Linux
49-
with glibc and on macOS.
49+
with glibc, on macOS and on Windows on x86-64.
5050

5151
=== "On the Gradle JVM"
5252

@@ -58,8 +58,8 @@ of the two settings below, `formatDiff` fails with an `IllegalAccessError` that
5858
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
5959
```
6060

61-
This works on every platform, Windows included. If the file already sets
62-
`org.gradle.jvmargs`, add the flags to that line instead of writing a second one.
61+
This works on every platform. If the file already sets `org.gradle.jvmargs`, add the flags to
62+
that line instead of writing a second one.
6363

6464
A build that also applies Spotless needs the JVM flags: the Spotless step runs on the Gradle JVM
6565
even when the native binary is switched on. See [Spotless](spotless.md).

‎docs/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ openjavaformat.native.formatter=true
116116

117117
The plugin adds the `formatDiff` task, which formats only the lines you changed in git, and it keeps
118118
IntelliJ IDEA on the formatter version of the build. The property makes Gradle run the formatter as
119-
a native binary on Linux and macOS. For Windows and for multi-project builds see
119+
a native binary on Linux, macOS and Windows. For other platforms and for multi-project builds see
120120
[Gradle plugin](get-started/gradle.md).
121121

122122
### On the command line

0 commit comments

Comments
 (0)