Add dependency report script (#22425)
This commit is contained in:
parent
822c13ff6f
commit
5f372b8483
1 changed files with 23 additions and 0 deletions
23
misc/scripts/dependency-report.sh
Executable file
23
misc/scripts/dependency-report.sh
Executable 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 ""
|
||||
|
Loading…
Reference in a new issue