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
The action, the pre-commit hook and the CI default to 2.98.0.5, released
on 2026-09-28. It keeps the single style of 2.98.0.2, so this stays on
v2.
2.98.0.5 leaves JBang directives such as //DEPS at the top of a script
as written (openjavaformat/open-java-format#24), so the exclude example
in the README no longer gives JBang scripts as the reason to skip files.
It shows code copied from another project instead.
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ No Java, Maven, or Gradle required — downloads a native binary from Maven Cent
11
11
12
12
- uses: openjavaformat/open-java-format-action@v2
13
13
with:
14
-
version: '2.98.0.4'
14
+
version: '2.98.0.5'
15
15
```
16
16
17
17
v2 is for open-java-format 2.98.0.2 and later, which has a single style. A workflow that pins 2.98.0.1 stays on `@v1`, which passes that version the `--ojf` flag it needs.
@@ -20,7 +20,7 @@ v2 is for open-java-format 2.98.0.2 and later, which has a single style. A workf
20
20
21
21
| Input | Required | Default | Description |
22
22
|-------|----------|---------|-------------|
23
-
| `version` | yes | `2.98.0.4` | Version of the open-java-format native binary, one of those on [Maven Central](https://repo1.maven.org/maven2/dev/openjavaformat/open-java-format-native/) |
23
+
| `version` | yes | `2.98.0.5` | Version of the open-java-format native binary, one of those on [Maven Central](https://repo1.maven.org/maven2/dev/openjavaformat/open-java-format-native/) |
24
24
| `mode` | no | `changed` | `changed` — only files from PR or push; `all` — every `.java` file in repo |
25
25
26
26
## How `mode: changed` works
@@ -39,7 +39,7 @@ Files are checked in the open-java-format style, the formatter's only style. Whe
0 commit comments