mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-03 23:28:11 +00:00
10 lines
512 B
Bash
10 lines
512 B
Bash
![]() |
# This script checks the shadow jar to ensure that we only have allowed classes being exposed through the jar
|
||
|
jar -tvf build/libs/datahub-client.jar| grep -v "datahub/shaded" | grep -v "META-INF" | grep -v "com/linkedin" | grep -v "com/datahub" | grep -v "datahub" | grep -v "entity-registry" | grep -v "pegasus" | grep -v "legacyPegasusSchemas/" | grep -v " com/$"
|
||
|
if [ $? -ne 0 ]; then
|
||
|
echo "No other packages found. Great"
|
||
|
exit 0
|
||
|
else
|
||
|
echo "Found other packages than what we were expecting"
|
||
|
exit 1
|
||
|
fi
|