I'm using google-java-format to format Java code according to Google Java Style. However, I only find documentation and examples showing how to format one file using the CLI.
Is there a built-in way to format an entire Java project directly using the CLI (without looping using a shell script or something else)?
The answer above suggests using
xargs
, so here's the command that I used:...where my current working directory contains my Java project (in the
my_java_project
folder) and the Google Java Format JAR.