Skip to content

Format the 17 line with 17.1.0 - #302

Merged
abashev merged 1 commit into
17.X.Xfrom
abashev/format-with-17-1-0
Dec 1, 2026
Merged

abashev merged 1 commit into
17.X.Xfrom
abashev/format-with-17-1-0

Conversation

@abashev

@abashev abashev commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Before this PR

The 21 line's Gradle plugin, which formats this repository on 21.X.X, does not load on Gradle with JDK 17 (class file 65), so 17.X.X applied none (#298) and sent changes to the 21 line's runnable jar on JDK 21 until 17.1.0 was out.

After this PR

  • The root build applies the released gradle-open-java-format:17.1.0, and ./gradlew formatDiff formats the files you changed, as on the 21 line.
  • It formats inside the Gradle JVM, with the exports gradle.properties already passes: the 17 line has no native image of its own, so openjavaformat.native.formatter stays off.
  • The README and CLAUDE.md say so instead of pointing at the 21 line's jar.

Checked on Temurin 17.0.17: formatDiff prints "Using the Java-based formatter" and puts back a line made unformatted on purpose, and ./gradlew check passes.

Possible downsides?

  • Formatting in the Gradle JVM is slower than the native binary the 21 line uses; for the files of one change it is a few seconds.

The 21 line's Gradle plugin does not load on Gradle with JDK 17, so the 17 line applied none until its own was
out. 17.1.0 is, and formats this repository now, with formatDiff as on the 21 line. It runs the formatter inside
the Gradle JVM: the line has no native image of its own. The README and CLAUDE.md no longer send changes to the
21 line's runnable jar.
@abashev
abashev merged commit f6023ef into 17.X.X Dec 1, 2026
8 checks passed
@abashev
abashev deleted the abashev/format-with-17-1-0 branch December 1, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant