File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
echo " checking whole project"
19
19
fi
20
20
21
- echo " Running command: ./mvnw clean package -DskipTests=true -PlicenseCheck $APPEND_ARG "
21
+ echo " Running command: mvn clean package -DskipTests=true -PlicenseCheck $APPEND_ARG "
22
22
23
- ./mvnw clean package -DskipTests=true -PlicenseCheck $APPEND_ARG
23
+ mvn clean package -DskipTests=true -PlicenseCheck $APPEND_ARG
24
24
25
25
status=$?
26
26
if [ $status -eq 0 ]; then
@@ -91,7 +91,7 @@ allowLicense=(
91
91
)
92
92
93
93
# filter allow license
94
- license_need_check=` cat $TARGET_FILE | grep -v " generated-sources/license/THIRD-PARTY.txt" | grep -v " third-party dependencies" | grep -v $LINE_FLAG `
94
+ license_need_check=` cat $TARGET_FILE | grep -v " generated-sources/license/THIRD-PARTY.txt" | grep -v " third-party dependencies" | grep -v " The project has no dependencies. " | grep -v $LINE_FLAG `
95
95
96
96
for i in " ${allowLicense[@]} " ; do
97
97
license_need_check=` echo " $license_need_check " | grep -vi " $i " `
106
106
echo " ${red} Please check below license${reset} "
107
107
cat license-need-check
108
108
fi
109
+
110
+ rm -f license-list license-need-check
You can’t perform that action at this time.
0 commit comments