2016-01-21 13:18:55 +01:00
|
|
|
# This script
|
|
|
|
|
cd ..
|
|
|
|
|
mvn dependency:list -DexcludeGroupIds=org.eclipse.hawkbit -Dsort=true -DoutputFile=dependencies.txt
|
|
|
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:compile'|sort|uniq > 3rd-dependencies/compile.txt
|
|
|
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:test'|sort|uniq > 3rd-dependencies/test.txt
|
|
|
|
|
find . -name dependencies.txt|while read i; do cat $i;done|grep '.*:.*:provided'|sort|uniq > 3rd-dependencies/provided.txt
|
|
|
|
|
find . -name dependencies.txt|while read i; do rm $i;done
|
|
|
|
|
cd 3rd-dependencies/
|
2016-03-08 12:41:13 +01:00
|
|
|
cat compile.txt provided.txt|cut -d':' -f1-4|while read i; do grep -h $i test.txt;done|sort|uniq|while read x; do sed -i.bak -e s/$x// test.txt ;done
|
|
|
|
|
sed -i.bak '/^[[:space:]]*$/d' test.txt
|
|
|
|
|
rm *.bak
|