diff --git a/jdeps-reports.sh b/jdeps-reports.sh new file mode 100755 index 000000000..f26175e8d --- /dev/null +++ b/jdeps-reports.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +# Expects JDK 10+ on classpath + +## Update the classpath definition used by this script: +mvn dependency:build-classpath -Dmdep.outputFile=cp.txt > /dev/null +CLASSPATH=`cat cp.txt` + +echo "Listing `jdeps --print-module-deps` for each dependency individually:" +IFS=':'; CLASSPATH_ARRAY=($CLASSPATH); unset IFS; +for dep in ${CLASSPATH_ARRAY[@]} +do + echo " " + echo "Dependency: $dep" + jdeps --print-module-deps $dep +done +echo " " +# TODO : combined report not supported by jdeps? +#echo "Listing `jdeps --print-module-deps` for all dependencies combined:" +#jdeps --print-module-deps -cp $CLASSPATH + + +