mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
16 lines
372 B
Bash
Executable File
16 lines
372 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Format Java files with Spotless (keeping this for Eclipse formatter)
|
|
echo "Formatting Java files..."
|
|
|
|
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
|
|
# Store original directory
|
|
pushd "$dir" > /dev/null
|
|
|
|
# Run gradle from the formatters directory
|
|
./gradlew spotlessJavaApply --quiet
|
|
|
|
# Return to original directory
|
|
popd > /dev/null |