Skip to content

Commit 0df94d6

Browse files
committed
removing all dependencies from shadowJar
1 parent c084198 commit 0df94d6

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

integration/spark/build.gradle

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,38 @@ shadowJar {
168168
exclude(dependency("org.slf4j::"))
169169
exclude("org/apache/commons/logging/**")
170170
exclude("io/openlineage/server/**")
171+
exclude("io/openlineage/sql/libopenlineage_sql_java_x86_64.so")
172+
exclude("io/openlineage/sql/libopenlineage_sql_java_aarch64.so")
173+
exclude("io/openlineage/sql/libopenlineage_sql_java_arm64.dylib")
174+
exclude("com/fasterxml/jackson/**")
175+
exclude("org/apache/http/**")
176+
exclude("org/apache/httpcomponents/client5/**")
177+
exclude("com/github/ok2c/hc5/**")
178+
exclude("org/apache/hc/**")
179+
exclude("org/HdrHistogram/**")
180+
exclude("org/LatencyUtils/**")
181+
exclude("org/apache/commons/codec/**")
182+
exclude("org/apache/commons/lang3/**")
183+
exclude("org/apache/commons/beanutils/**")
184+
exclude("org/yaml/snakeyaml/**")
185+
exclude("javassist/**")
186+
exclude("io/micrometer/**")
187+
exclude("mozilla/**")
188+
exclude("org/publicsuffix/**")
171189
}
172190

173-
relocate "com.github.ok2c.hc5", "io.openlineage.spark.shaded.com.github.ok2c.hc5"
174-
relocate "org.apache.httpcomponents.client5", "io.openlineage.spark.shaded.org.apache.httpcomponents.client5"
175-
relocate "javassist", "io.openlineage.spark.shaded.javassist"
176-
relocate "org.apache.hc", "io.openlineage.spark.shaded.org.apache.hc"
177-
relocate "org.apache.commons.codec", "io.openlineage.spark.shaded.org.apache.commons.codec"
178-
relocate "org.apache.commons.lang3", "io.openlineage.spark.shaded.org.apache.commons.lang3"
179-
relocate "org.apache.commons.beanutils", "io.openlineage.spark.shaded.org.apache.commons.beanutils"
180-
relocate "org.apache.http", "io.openlineage.spark.shaded.org.apache.http"
181-
relocate 'org.yaml.snakeyaml', 'io.openlineage.spark.shaded.org.yaml.snakeyaml'
182-
relocate "com.fasterxml.jackson", "io.openlineage.spark.shaded.com.fasterxml.jackson"
183-
relocate "org.LatencyUtils", "io.openlineage.spark.shaded.org.latencyutils"
184-
relocate "org.HdrHistogram", "io.openlineage.spark.shaded.org.hdrhistogram"
191+
// relocate "com.github.ok2c.hc5", "io.openlineage.spark.shaded.com.github.ok2c.hc5"
192+
// relocate "org.apache.httpcomponents.client5", "io.openlineage.spark.shaded.org.apache.httpcomponents.client5"
193+
// relocate "javassist", "io.openlineage.spark.shaded.javassist"
194+
// relocate "org.apache.hc", "io.openlineage.spark.shaded.org.apache.hc"
195+
// relocate "org.apache.commons.codec", "io.openlineage.spark.shaded.org.apache.commons.codec"
196+
// relocate "org.apache.commons.lang3", "io.openlineage.spark.shaded.org.apache.commons.lang3"
197+
// relocate "org.apache.commons.beanutils", "io.openlineage.spark.shaded.org.apache.commons.beanutils"
198+
// relocate "org.apache.http", "io.openlineage.spark.shaded.org.apache.http"
199+
// relocate 'org.yaml.snakeyaml', 'io.openlineage.spark.shaded.org.yaml.snakeyaml'
200+
// relocate "com.fasterxml.jackson", "io.openlineage.spark.shaded.com.fasterxml.jackson"
201+
// relocate "org.LatencyUtils", "io.openlineage.spark.shaded.org.latencyutils"
202+
// relocate "org.HdrHistogram", "io.openlineage.spark.shaded.org.hdrhistogram"
185203
manifest {
186204
attributes(
187205
"Created-By": "Gradle ${gradle.gradleVersion}",

0 commit comments

Comments
 (0)