RuoYi-Cloud/checkThirdPaty.sh

15 lines
383 B
Bash
Raw Normal View History

2020-12-18 13:28:13 +08:00
#!/bin/bash
currentDir=`pwd`
shortName=${currentDir##*/}
2020-12-22 17:27:59 +08:00
rm -rf temp ${shortName}-third-jar.gradle
echo "dependencies { ">> ${shortName}-third-jar.gradle
2020-12-18 13:28:13 +08:00
2020-12-22 17:27:59 +08:00
find . -name "build.gradle" | xargs cat |grep -E "compile group|compile
'|implementation " | egrep -v 'gridnt' >> temp
sort temp |uniq >> ${shortName}-third-jar.gradle
2020-12-18 13:28:13 +08:00
rm -rf temp
2020-12-22 17:27:59 +08:00
echo "} ">> ${shortName}-third-jar.gradle
2020-12-18 13:28:13 +08:00
2020-12-22 17:27:59 +08:00