mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Add dependency report script (#22425)
This commit is contained in:
parent
822c13ff6f
commit
5f372b8483
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…
x
Reference in New Issue
Block a user