keycloak/misc/scripts/dependency-report.sh

24 lines
687 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-08-14 07:00:08 -04:00
cd $(dirname $0 | xargs readlink -f)/../../
DEP=$1
TMP=$(mktemp)
if [ "$DEP" == "" ]; then
echo "Usage: dependency-report.sh [groupId]:[artifactId]:[type]:[version]"
exit 1
fi
./mvnw -q dependency:tree -Dincludes=$DEP -DoutputFile=$TMP -DappendOutput=true -Poperator
2023-08-14 07:00:08 -04:00
echo ""
echo "==================================================================================================="
echo "Dependency tree for $DEP"
echo "---------------------------------------------------------------------------------------------------"
cat $TMP
rm $TMP
echo "==================================================================================================="
echo ""