keycloak/misc/scripts/dependency-report.sh
Akbar Husain 3f62bb4d2b
Make shebang in bash scripts consistent (#37369)
Closes #34983

Signed-off-by: akbarhusainpatel <apatel@intermiles.com>
2026-02-17 11:32:28 +01:00

23 lines
687 B
Bash
Executable file

#!/usr/bin/env bash
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
echo ""
echo "==================================================================================================="
echo "Dependency tree for $DEP"
echo "---------------------------------------------------------------------------------------------------"
cat $TMP
rm $TMP
echo "==================================================================================================="
echo ""