Skip to content

Commit 75224d2

Browse files
authored
chore: add check dependencies (#293)
1 parent 89a8f9b commit 75224d2

File tree

4 files changed

+348
-7
lines changed

4 files changed

+348
-7
lines changed

.github/workflows/license-checker.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ jobs:
5555
cp $HOME/.m2/settings.xml /tmp/settings.xml
5656
mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml
5757
- name: Compile install
58-
run: mvn package -DskipTests=true -ntp
59-
60-
# TODO: enable it after the check scripts are ready, lack them now
61-
#- name: Generate & check current 3rd-party dependencies
62-
# run: |
63-
# bash $SCRIPT_DEPENDENCY/regenerate_known_dependencies.sh current-dependencies.txt
64-
# bash $SCRIPT_DEPENDENCY/check_dependencies.sh
58+
run: mvn install -DskipTests=true -ntp
59+
- name: Generate & check current 3rd-party dependencies
60+
run: |
61+
bash $SCRIPT_DEPENDENCY/regenerate_known_dependencies.sh current-dependencies.txt
62+
cat $SCRIPT_DEPENDENCY/current-dependencies.txt
63+
bash $SCRIPT_DEPENDENCY/check_dependencies.sh
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with this
5+
# work for additional information regarding copyright ownership. The ASF
6+
# licenses this file to You under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15+
# License for the specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
19+
BASE_PATH=$(cd $(dirname $0); pwd)
20+
21+
# check whether there are new third-party dependencies by diff command,
22+
# diff generated 'current-dependencies.txt' file with 'known-dependencies.txt' file.
23+
diff -w -B -U0 <(sort < ${BASE_PATH}/known-dependencies.txt) \
24+
<(sort < ${BASE_PATH}/current-dependencies.txt) > ${BASE_PATH}/result.txt
25+
26+
# if has new third-party,the Action will fail and print diff
27+
if [ -s ${BASE_PATH}/result.txt ]; then
28+
cat ${BASE_PATH}/result.txt
29+
exit 1
30+
else
31+
echo 'All third dependencies is known!'
32+
fi
Lines changed: 277 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,277 @@
1+
accessors-smart-1.2.jar
2+
activation-1.1.jar
3+
animal-sniffer-annotations-1.18.jar
4+
annotations-13.0.jar
5+
annotations-4.1.1.4.jar
6+
apiguardian-api-1.1.0.jar
7+
asm-5.0.4.jar
8+
audience-annotations-0.5.0.jar
9+
auto-service-annotations-1.0-rc7.jar
10+
automaton-1.11-8.jar
11+
avro-1.7.7.jar
12+
bcprov-jdk18on-1.74.jar
13+
bolt-1.6.2.jar
14+
builder-annotations-0.13.1.jar
15+
byte-buddy-1.10.20.jar
16+
byte-buddy-agent-1.10.20.jar
17+
checker-qual-3.33.0.jar
18+
checker-qual-3.5.0.jar
19+
commons-beanutils-1.9.3.jar
20+
commons-beanutils-1.9.4.jar
21+
commons-cli-1.2.jar
22+
commons-codec-1.11.jar
23+
commons-codec-1.13.jar
24+
commons-collections-3.2.2.jar
25+
commons-compress-1.18.jar
26+
commons-configuration-1.10.jar
27+
commons-configuration2-2.1.1.jar
28+
commons-configuration2-2.8.0.jar
29+
commons-crypto-1.0.0.jar
30+
commons-io-2.5.jar
31+
commons-io-2.7.jar
32+
commons-lang-2.6.jar
33+
commons-lang3-3.12.0.jar
34+
commons-logging-1.1.1.jar
35+
commons-logging-1.1.3.jar
36+
commons-math3-3.1.1.jar
37+
commons-net-3.6.jar
38+
commons-text-1.9.jar
39+
computer-algorithm-1.2.0.jar
40+
computer-api-1.2.0.jar
41+
computer-core-1.2.0.jar
42+
computer-dist-1.2.0.jar
43+
computer-driver-1.2.0.jar
44+
computer-k8s-1.2.0.jar
45+
computer-k8s-operator-1.2.0.jar
46+
computer-yarn-1.2.0.jar
47+
curator-client-2.13.0.jar
48+
curator-framework-2.13.0.jar
49+
curator-recipes-2.13.0.jar
50+
disruptor-3.3.7.jar
51+
error_prone_annotations-2.3.4.jar
52+
failsafe-2.4.0.jar
53+
failureaccess-1.0.1.jar
54+
findbugs-annotations-1.3.9-1.jar
55+
generex-1.0.2.jar
56+
groovy-all-2.4.21.jar
57+
grpc-api-1.33.0.jar
58+
grpc-context-1.33.0.jar
59+
grpc-core-1.33.0.jar
60+
grpc-grpclb-1.33.0.jar
61+
grpc-netty-1.33.0.jar
62+
grpc-protobuf-1.33.0.jar
63+
grpc-protobuf-lite-1.33.0.jar
64+
grpc-stub-1.33.0.jar
65+
gson-2.2.4.jar
66+
guava-30.0-jre.jar
67+
guava-32.0.1-jre.jar
68+
hadoop-annotations-3.1.2.jar
69+
hadoop-auth-3.1.2.jar
70+
hadoop-common-3.1.2.jar
71+
hadoop-hdfs-client-3.1.2.jar
72+
hamcrest-core-1.3.jar
73+
hbase-client-2.2.3.jar
74+
hbase-common-2.2.3.jar
75+
hbase-hadoop-compat-2.2.3.jar
76+
hbase-hadoop2-compat-2.2.3.jar
77+
hbase-http-2.2.3.jar
78+
hbase-mapreduce-2.2.3.jar
79+
hbase-metrics-2.2.3.jar
80+
hbase-metrics-api-2.2.3.jar
81+
hbase-procedure-2.2.3.jar
82+
hbase-protocol-2.2.3.jar
83+
hbase-protocol-shaded-2.2.3.jar
84+
hbase-replication-2.2.3.jar
85+
hbase-server-2.2.3.jar
86+
hbase-shaded-client-byo-hadoop-2.2.3.jar
87+
hbase-shaded-miscellaneous-2.2.1.jar
88+
hbase-shaded-netty-2.2.1.jar
89+
hbase-shaded-protobuf-2.2.1.jar
90+
hbase-zookeeper-2.2.3.jar
91+
hessian-3.3.7.jar
92+
htrace-core4-4.1.0-incubating.jar
93+
httpclient-4.5.2.jar
94+
httpcore-4.4.4.jar
95+
j2objc-annotations-1.3.jar
96+
j2objc-annotations-2.8.jar
97+
jackson-annotations-2.11.2.jar
98+
jackson-annotations-2.14.0-rc1.jar
99+
jackson-annotations-2.15.2.jar
100+
jackson-core-2.11.2.jar
101+
jackson-core-2.14.0-rc1.jar
102+
jackson-core-2.15.2.jar
103+
jackson-core-asl-1.9.2.jar
104+
jackson-databind-2.11.2.jar
105+
jackson-databind-2.14.0-rc1.jar
106+
jackson-databind-2.15.2.jar
107+
jackson-dataformat-yaml-2.11.2.jar
108+
jackson-dataformat-yaml-2.9.3.jar
109+
jackson-datatype-jsr310-2.11.2.jar
110+
jackson-jaxrs-1.9.2.jar
111+
jackson-jaxrs-base-2.14.0-rc1.jar
112+
jackson-jaxrs-json-provider-2.14.0-rc1.jar
113+
jackson-mapper-asl-1.9.2.jar
114+
jackson-module-jaxb-annotations-2.12.3.jar
115+
jackson-module-jaxb-annotations-2.14.0-rc1.jar
116+
jackson-xc-1.9.2.jar
117+
jakarta.activation-2.0.1.jar
118+
jakarta.activation-api-1.2.1.jar
119+
jakarta.activation-api-1.2.2.jar
120+
jakarta.xml.bind-api-2.3.2.jar
121+
jamon-runtime-2.4.1.jar
122+
javassist-3.20.0-GA.jar
123+
javassist-3.28.0-GA.jar
124+
javax.el-3.0.1-b12.jar
125+
javax.inject-2.5.0-b32.jar
126+
javax.json-1.0.jar
127+
javax.servlet-api-3.1.0.jar
128+
javax.servlet.jsp-2.3.2.jar
129+
javax.servlet.jsp-api-2.3.1.jar
130+
jaxb-api-2.2.2.jar
131+
jaxb-core-3.0.2.jar
132+
jaxb-impl-2.2.3-1.jar
133+
jaxb-impl-3.0.2.jar
134+
jcip-annotations-1.0-1.jar
135+
jcodings-1.0.18.jar
136+
jcommander-1.78.jar
137+
jersey-container-servlet-core-2.25.1.jar
138+
jersey-core-1.19.jar
139+
jersey-json-1.19.jar
140+
jersey-server-1.19.jar
141+
jersey-servlet-1.19.jar
142+
jetcd-common-0.5.4.jar
143+
jetcd-core-0.5.4.jar
144+
jettison-1.1.jar
145+
jetty-http-9.3.24.v20180605.jar
146+
jetty-io-9.3.24.v20180605.jar
147+
jetty-security-9.3.24.v20180605.jar
148+
jetty-server-9.3.24.v20180605.jar
149+
jetty-servlet-9.3.24.v20180605.jar
150+
jetty-util-9.3.24.v20180605.jar
151+
jetty-util-ajax-9.3.27.v20190418.jar
152+
jetty-webapp-9.3.24.v20180605.jar
153+
jetty-xml-9.3.24.v20180605.jar
154+
jline-0.9.94.jar
155+
joda-time-2.10.8.jar
156+
joni-2.1.11.jar
157+
jsch-0.1.54.jar
158+
json-smart-2.3.jar
159+
jsp-api-2.1.jar
160+
jsr305-3.0.1.jar
161+
jsr305-3.0.2.jar
162+
junit-4.12.jar
163+
junit-4.13.1.jar
164+
junit-jupiter-api-5.7.2.jar
165+
junit-platform-commons-1.7.2.jar
166+
kerb-admin-1.0.1.jar
167+
kerb-client-1.0.1.jar
168+
kerb-common-1.0.1.jar
169+
kerb-core-1.0.1.jar
170+
kerb-crypto-1.0.1.jar
171+
kerb-identity-1.0.1.jar
172+
kerb-server-1.0.1.jar
173+
kerb-simplekdc-1.0.1.jar
174+
kerb-util-1.0.1.jar
175+
kerby-asn1-1.0.1.jar
176+
kerby-config-1.0.1.jar
177+
kerby-pkix-1.0.1.jar
178+
kerby-util-1.0.1.jar
179+
kerby-xdr-1.0.1.jar
180+
kotlin-stdlib-1.6.20.jar
181+
kotlin-stdlib-common-1.5.31.jar
182+
kotlin-stdlib-common-1.6.20.jar
183+
kotlin-stdlib-jdk7-1.6.10.jar
184+
kotlin-stdlib-jdk7-1.6.20.jar
185+
kotlin-stdlib-jdk8-1.6.10.jar
186+
kotlin-stdlib-jdk8-1.6.20.jar
187+
kubernetes-client-5.6.0.jar
188+
kubernetes-model-admissionregistration-5.6.0.jar
189+
kubernetes-model-apiextensions-5.6.0.jar
190+
kubernetes-model-apps-5.6.0.jar
191+
kubernetes-model-autoscaling-5.6.0.jar
192+
kubernetes-model-batch-5.6.0.jar
193+
kubernetes-model-certificates-5.6.0.jar
194+
kubernetes-model-common-5.6.0.jar
195+
kubernetes-model-coordination-5.6.0.jar
196+
kubernetes-model-core-5.6.0.jar
197+
kubernetes-model-discovery-5.6.0.jar
198+
kubernetes-model-events-5.6.0.jar
199+
kubernetes-model-extensions-5.6.0.jar
200+
kubernetes-model-flowcontrol-5.6.0.jar
201+
kubernetes-model-metrics-5.6.0.jar
202+
kubernetes-model-networking-5.6.0.jar
203+
kubernetes-model-node-5.6.0.jar
204+
kubernetes-model-policy-5.6.0.jar
205+
kubernetes-model-rbac-5.6.0.jar
206+
kubernetes-model-scheduling-5.6.0.jar
207+
kubernetes-model-storageclass-5.6.0.jar
208+
kubernetes-server-mock-5.6.0.jar
209+
lightning-csv-8.2.1.jar
210+
listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
211+
log4j-1.2.17.jar
212+
log4j-api-2.18.0.jar
213+
log4j-core-2.18.0.jar
214+
log4j-slf4j-impl-2.18.0.jar
215+
logging-interceptor-3.12.12.jar
216+
logging-interceptor-4.10.0.jar
217+
lookout-api-1.4.1.jar
218+
lz4-java-1.4.0.jar
219+
metrics-core-3.2.6.jar
220+
minio-8.5.6.jar
221+
mockito-core-3.8.0.jar
222+
mockwebserver-0.1.8.jar
223+
mvel2-2.4.13.Final.jar
224+
netty-3.10.6.Final.jar
225+
netty-all-4.1.42.Final.jar
226+
nimbus-jose-jwt-4.41.1.jar
227+
objenesis-3.1.jar
228+
okhttp-2.7.5.jar
229+
okhttp-3.12.12.jar
230+
okhttp-4.10.0.jar
231+
okhttp-4.11.0.jar
232+
okio-1.15.0.jar
233+
okio-3.2.0.jar
234+
okio-jvm-3.0.0.jar
235+
okio-jvm-3.2.0.jar
236+
opentest4j-1.2.0.jar
237+
opentracing-api-0.22.0.jar
238+
opentracing-mock-0.22.0.jar
239+
opentracing-noop-0.22.0.jar
240+
opentracing-util-0.22.0.jar
241+
ow2-asm-6.2.jar
242+
paranamer-2.3.jar
243+
perfmark-api-0.19.0.jar
244+
proto-google-common-protos-1.17.0.jar
245+
protobuf-java-3.12.0.jar
246+
protobuf-java-util-3.12.0.jar
247+
re2j-1.1.jar
248+
resourcecify-annotations-0.13.1.jar
249+
sfm-converter-8.2.1.jar
250+
sfm-csv-8.2.1.jar
251+
sfm-map-8.2.1.jar
252+
sfm-reflect-8.2.1.jar
253+
sfm-tuples-8.2.1.jar
254+
sfm-util-8.2.1.jar
255+
simple-xml-safe-2.7.1.jar
256+
slf4j-api-1.7.25.jar
257+
slf4j-api-1.7.30.jar
258+
slf4j-api-1.7.31.jar
259+
snakeyaml-1.18.jar
260+
snakeyaml-1.26.jar
261+
snappy-java-1.1.10.1.jar
262+
sofa-common-tools-1.0.12.jar
263+
sofa-rpc-all-5.7.6.jar
264+
stax-api-1.0-2.jar
265+
stax2-api-3.1.4.jar
266+
sundr-codegen-0.13.1.jar
267+
sundr-core-0.13.1.jar
268+
swagger-annotations-1.5.18.jar
269+
swagger-core-1.5.18.jar
270+
swagger-models-1.5.18.jar
271+
token-provider-1.0.1.jar
272+
tracer-core-3.0.8.jar
273+
validation-api-1.1.0.Final.jar
274+
woodstox-core-5.0.3.jar
275+
xz-1.8.jar
276+
zjsonpatch-0.3.0.jar
277+
zookeeper-3.4.13.jar
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with this
5+
# work for additional information regarding copyright ownership. The ASF
6+
# licenses this file to You under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15+
# License for the specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
19+
BASE_PATH=$(cd $(dirname $0); pwd)
20+
DEP_PATH=$BASE_PATH/all_dependencies
21+
FILE_NAME=${1:-known-dependencies.txt}
22+
23+
if [[ -d $DEP_PATH ]];then
24+
echo "rm -r -f DEP_PATH"
25+
rm -r -f $DEP_PATH
26+
fi
27+
28+
cd $BASE_PATH/../../../
29+
30+
mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=$DEP_PATH
31+
32+
ls $DEP_PATH | egrep -v "^hugegraph" | sort -n > $BASE_PATH/$FILE_NAME
33+
rm -r -f $DEP_PATH

0 commit comments

Comments
 (0)