1
0

makes HTML reports from failed gradle tasks directly accessible via gw alias + grep

This commit is contained in:
Michael Hoennig
2022-09-06 11:07:49 +02:00
parent af90fefd49
commit 4ec26108fa
2 changed files with 19 additions and 5 deletions

View File

@@ -1,4 +1,19 @@
alias gw='./gradlew'
gradleWrapper () {
if [ ! -f gradlew ]; then
echo "No 'gradlew' found. Maybe you are not in the root dir of a gradle project?"
exit 1
fi
TEMPFILE=$(mktemp /tmp/gw.XXXXXX)
./gradlew "$@" | tee $TEMPFILE
echo
grep "Report:" $TEMPFILE
rm $TEMPFILE
}
alias gw=gradleWrapper
alias pg-sql-run='docker run --name hsadmin-ng-postgres -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres:13.7-bullseye'
alias pg-sql-stop='docker stop hsadmin-ng-postgres'
alias pg-sql-start='docker container start hsadmin-ng-postgres'