From 5f372b84833a123ac7d027b60a964cf5dac64bc7 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 14 Aug 2023 13:00:08 +0200 Subject: [PATCH] Add dependency report script (#22425) --- misc/scripts/dependency-report.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 misc/scripts/dependency-report.sh diff --git a/misc/scripts/dependency-report.sh b/misc/scripts/dependency-report.sh new file mode 100755 index 0000000000..c4885120c2 --- /dev/null +++ b/misc/scripts/dependency-report.sh @@ -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 "" +