Add dependency report script (#22425)

This commit is contained in:
Stian Thorgersen 2023-08-14 13:00:08 +02:00 committed by GitHub
parent 822c13ff6f
commit 5f372b8483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,23 @@
#!/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
mvn -q dependency:tree -Dincludes=$DEP -DoutputFile=$TMP -DappendOutput=true
echo ""
echo "==================================================================================================="
echo "Dependency tree for $DEP"
echo "---------------------------------------------------------------------------------------------------"
cat $TMP
rm $TMP
echo "==================================================================================================="
echo ""