Run the tests on JDK 25, 26 and 27 as well by abashev · Pull Request #29 · openjavaformat/open-java-format · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ mise trust && mise install
./gradlew test # what the CI build job runs
```

`-PjavaRuntime=25` runs the same tests on JDK 25, as CI's `jdk` jobs do for 25, 26 and 27. The code
is compiled for Java 21 either way. Gradle has to find that JDK: installed with mise, or named with
`-Porg.gradle.java.installations.paths=/path/to/jdk`.

Nothing inside the build downloads a JDK. `gradle.properties` turns toolchain auto-download off and
reads the installations from `JDK21_HOME` and `GRAALVM_HOME`, so a missing JDK is an error you can
read rather than a silent download.
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Loading