Skip to content

Commit

Permalink
Merge pull request #1 from Spotnana-Tech/v113
Browse files Browse the repository at this point in the history
updgrade the java code format version
  • Loading branch information
GauravSpotnana authored Jan 26, 2022
2 parents 865b1a7 + 9c63085 commit 4aa3f1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions format-code.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env sh
mkdir -p .cache
cd .cache
if [ ! -f google-java-format-1.7-all-deps.jar ]
if [ ! -f google-java-format-1.13.0-all-deps.jar ]
then
curl -LJO "https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar"
chmod 755 google-java-format-1.7-all-deps.jar
curl -LJO "https://github.com/google/google-java-format/releases/download/v1.13.0/google-java-format-1.13.0-all-deps.jar"
chmod 755 google-java-format-1.13.0-all-deps.jar
fi
cd ..

java -jar .cache/google-java-format-1.7-all-deps.jar --replace $@
java -jar .cache/google-java-format-1.13.0-all-deps.jar --replace $@

0 comments on commit 4aa3f1c

Please sign in to comment.