Files
Sketches/breath_button_monitor/breathmonitor_v3 with server/server/build.sh
T

13 lines
349 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [[ -x ./gradlew ]]; then
./gradlew --no-daemon shadowJar
elif command -v gradle >/dev/null 2>&1; then
gradle --no-daemon shadowJar
else
echo 'Gradle is required (install Gradle or provide ./gradlew).' >&2
exit 1
fi
printf 'Built %s\n' "$(pwd)/build/libs/breathmonitor-1.0.0.jar"