From 7702e497495a9e32d0cd1640468ac1d204af5de9 Mon Sep 17 00:00:00 2001 From: Dave Maughan Date: Thu, 16 Feb 2023 18:46:23 +0000 Subject: [PATCH] Shade & relocate dependencies (#55) --- .gitignore | 1 + .../{ => io/streamnative/oxia}/client.proto | 0 pulsar-metadatastore-oxia/pom.xml | 86 +++++++++++++++++++ 3 files changed, 87 insertions(+) rename client/src/main/proto/{ => io/streamnative/oxia}/client.proto (100%) diff --git a/.gitignore b/.gitignore index f1b939be..5bb2dd3d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ target/ !.mvn/wrapper/maven-wrapper.jar !**/src/main/**/target/ !**/src/test/**/target/ +dependency-reduced-pom.xml ### IntelliJ IDEA ### .idea/* diff --git a/client/src/main/proto/client.proto b/client/src/main/proto/io/streamnative/oxia/client.proto similarity index 100% rename from client/src/main/proto/client.proto rename to client/src/main/proto/io/streamnative/oxia/client.proto diff --git a/pulsar-metadatastore-oxia/pom.xml b/pulsar-metadatastore-oxia/pom.xml index f7a88c42..ebcf5f3c 100644 --- a/pulsar-metadatastore-oxia/pom.xml +++ b/pulsar-metadatastore-oxia/pom.xml @@ -34,6 +34,7 @@ 17 UTF-8 UTF-8 + io.streamnative.pulsarmetadatastoreoxia.shaded 2.12.0-SNAPSHOT 0.0.1-SNAPSHOT @@ -52,6 +53,7 @@ 4.1 3.10.1 3.1.0 + 3.4.1 3.0.0-M7 4.7.2.0 2.25.0 @@ -305,6 +307,90 @@ + + org.apache.maven.plugins + maven-shade-plugin + ${maven.shade.plugin.version} + + + + shade + + package + + true + true + shaded + + + com.google + ${shade.relocation.package}.com.google + + + com.salesforce + ${shade.relocation.package}.com.salesforce + + + google + ${shade.relocation.package}.google + + + io.grpc + ${shade.relocation.package}.io.grpc + + + io.perfmark + ${shade.relocation.package}.io.perfmark + + + io.streamnative.oxia + ${shade.relocation.package}.io.streamnative.oxia + + + javax.annotation + ${shade.relocation.package}.javax.annotation + + + net.openhft + ${shade.relocation.package}.net.openhft + + + org.codehaus + ${shade.relocation.package}.org.codehaus + + + okio + ${shade.relocation.package}.okio + + + org.checkerframework + ${shade.relocation.package}.org.checkerframework + + + org.reactivestreams + ${shade.relocation.package}.org.reactivestreams + + + reactor + ${shade.relocation.package}.reactor + + + + + *:* + + module-info.class + META-INF/MANIFEST.MF + + + + + + + + + + org.codehaus.mojo build-helper-maven-plugin