Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#5444] fix(gcp): relocate GCP bundle jar to avoid conflict with Gravitino (#5448)

FANNGb225271739ba
diff --git a/bundles/gcp-bundle/build.gradle.kts b/bundles/gcp-bundle/build.gradle.kts
index 14488ec275..7d679f6275 100644
--- a/bundles/gcp-bundle/build.gradle.kts
+++ b/bundles/gcp-bundle/build.gradle.kts
@@ -49,10 +49,10 @@ tasks.withType(ShadowJar::class.java) {
archiveClassifier.set("")
// Relocate dependencies to avoid conflicts
- relocate("org.apache.httpcomponents", "org.apache.gravitino.shaded.org.apache.httpcomponents")
- relocate("org.apache.commons", "org.apache.gravitino.shaded.org.apache.commons")
- relocate("com.google", "org.apache.gravitino.shaded.com.google")
- relocate("com.fasterxml", "org.apache.gravitino.shaded.com.fasterxml")
+ relocate("org.apache.httpcomponents", "org.apache.gravitino.gcp.shaded.org.apache.httpcomponents")
+ relocate("org.apache.commons", "org.apache.gravitino.gcp.shaded.org.apache.commons")
+ relocate("com.google", "org.apache.gravitino.gcp.shaded.com.google")
+ relocate("com.fasterxml", "org.apache.gravitino.gcp.shaded.com.fasterxml")
}
tasks.jar {
diff --git a/bundles/gcp-bundle/src/main/resources/META-INF/services/org.apache.hadoop.fs.FileSystem b/bundles/gcp-bundle/src/main/resources/META-INF/services/org.apache.hadoop.fs.FileSystem
index e67410de7b..751c6f653d 100644
--- a/bundles/gcp-bundle/src/main/resources/META-INF/services/org.apache.hadoop.fs.FileSystem
+++ b/bundles/gcp-bundle/src/main/resources/META-INF/services/org.apache.hadoop.fs.FileSystem
@@ -17,4 +17,4 @@
# under the License.
#
-org.apache.gravitino.shaded.com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem
+org.apache.gravitino.gcp.shaded.com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem