2023-08-14 11:00:08 +00:00
|
|
|
#!/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
|
|
|
|
|
2024-06-03 13:45:39 +00:00
|
|
|
./mvnw -q dependency:tree -Dincludes=$DEP -DoutputFile=$TMP -DappendOutput=true -Poperator
|
2023-08-14 11:00:08 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "==================================================================================================="
|
|
|
|
echo "Dependency tree for $DEP"
|
|
|
|
echo "---------------------------------------------------------------------------------------------------"
|
|
|
|
cat $TMP
|
|
|
|
rm $TMP
|
|
|
|
echo "==================================================================================================="
|
|
|
|
echo ""
|
|
|
|
|