From 46934eb3901ecd5f8ad2c8224d5d8563cb61e3f5 Mon Sep 17 00:00:00 2001 From: Alex Abashev Date: Tue, 1 Dec 2026 01:45:25 +0300 Subject: [PATCH] Name the 17 line in the README's Versions Builds on JDK 17 to 20 take 17.x from the 17.X.X branch since 17.1.0 (#293). Versions says how its numbers follow this line's, what it publishes, and that its Gradle plugin runs the native image of the 21 release that openjavaformat.native.formatter.version names. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 4bd00f75..a5c8d1fb 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,13 @@ A version is three numbers, `..`, and each one answers a que The line between the last two numbers is the output, not the kind of change: a fix that changes the output raises the second number, a fix that does not raises the third. +**Builds on JDK 17 to 20 take 17.x**, the formatter and the Gradle plugin built for Java 17, from +the [`17.X.X`](https://github.com/openjavaformat/open-java-format/tree/17.X.X) branch. Its minor +versions follow this line's: 17.1.x formats every file that javac 17 parses exactly as 21.1.x does, +and its third number counts its own releases. It publishes the jars and the Gradle plugin. The +native image and the IDE plugins come with 21.x, and the 17.x Gradle plugin runs the native image of +the 21 release that `openjavaformat.native.formatter.version` names. + Up to 2.98.0.6 the version was palantir-java-format's with a build number appended. Once the bug fixes made the output differ from upstream, that numbering lost its meaning.