Skip to content
Merged
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
4 changes: 4 additions & 0 deletions registry/google-java-format.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
backends = ["aqua:google/google-java-format"]
depends = ["java"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Java minimum version not enforced

depends = ["java"] ensures Java is installed but places no lower-bound on the version. The google-java-format README states the minimum JDK version required to run the formatter is JDK 21 (as of recent releases). A user who already has, say, Java 11 or 17 set via mise would satisfy the dependency but hit a JVM incompatibility at runtime. All other Java-dependent entries in this registry (e.g. gradle.toml, ktlint.toml) share the same pattern, so this is a limitation of the pattern rather than unique to this PR — but it's worth being aware of, and a future improvement could be depends = ["java@21"].

description = "Reformats Java source code to comply with Google Java Style"
test = { cmd = "google-java-format --version", expected = "google-java-format: Version {{version}}" }
Loading