From aee16ed8015733ea3ebd344e6aeebb1cd813b05f Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 28 Mar 2025 08:31:07 -0700 Subject: [PATCH] docs: Clarify minimum Java version in README (see #1225) @kwin re. #1225 @cushon merge? Fixes #1235 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/google-java-format/pull/1235 from vorburger:patch-7 38255fae85c988972cf1c68a721efab62256d63c PiperOrigin-RevId: 741534873 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d3836efb2..ab55679ab 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ java -jar /path/to/google-java-format-${GJF_VERSION?}-all-deps.jar [fi Note that it uses the `jdk.compiler` module to parse the Java source code. The `java` binary version used must therefore be from a JDK (not JRE) with a version equal to or newer than the Java language version of the files being formatted. -An alternative is to use the available GraalVM based native binaries instead. +The minimum Java version can be found in `core/pom.xml` (currently Java 17). An +alternative is to use the available GraalVM based native binaries instead. The formatter can act on whole files, on limited lines (`--lines`), on specific offsets (`--offset`), passing through to standard-out (default) or altered