7 lines
No EOL
248 B
Bash
Executable file
7 lines
No EOL
248 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
git ls-files -co --exclude-standard | grep '\.java$' | sed 's/ /\\ /g' | xargs java \
|
|
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
|
|
-jar google-java-format-1.37.0-all-deps.jar --replace
|
|
|
|
echo "java/done" |