Skip to content

Commit 3b00fd7

Browse files
fix(shadowJar): fix shadowJar (#11968)
1 parent f9cc67d commit 3b00fd7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/check-datahub-jars.yml

+1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ jobs:
4040
- name: check ${{ matrix.command }} jar
4141
run: |
4242
./gradlew :metadata-integration:java:${{ matrix.command }}:build --info
43+
./gradlew :metadata-integration:java:${{ matrix.command }}:checkShadowJar
4344
./gradlew :metadata-integration:java:${{ matrix.command }}:javadoc

metadata-integration/java/datahub-protobuf/scripts/check_jar.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jar -tvf $jarFile |\
4444
grep -v "mime.types" |\
4545
grep -v "com/ibm/.*" |\
4646
grep -v "org/glassfish/" |\
47-
grep -v "LICENSE"
47+
grep -v "LICENSE" |\
48+
grep -v "org/apache/avro" |\
49+
grep -v "org/apache"
4850

4951
if [ $? -ne 0 ]; then
5052
echo "✅ No unexpected class paths found in ${jarFile}"

metadata-integration/java/datahub-schematron/lib/build.gradle

-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ jacocoTestReport {
4545

4646
test.finalizedBy jacocoTestReport
4747

48-
task checkShadowJar(type: Exec) {
49-
commandLine 'sh', '-c', 'scripts/check_jar.sh'
50-
}
51-
5248
configurations {
5349
provided
5450
implementation.extendsFrom provided

0 commit comments

Comments
 (0)