keycloak-scim/misc/scripts/dependency-report.sh
Alexander Schwartz 792a3457ff
Use Maven wrapper instead of platform dependent Maven version (#29988)
Closes #29987

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2024-06-03 15:45:39 +02:00

23 lines
679 B
Bash
Executable file

#!/bin/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 ""