From edaaafc50391f44d79ae16b6f35e664ced7f5dc5 Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Thu, 21 Jun 2018 01:10:19 -0700 Subject: [PATCH] Improve pulsar-client shading (#2006) * Improve pulsar-client shading *Motivation* - we should not shade `org.apache.pulsar.common` classes, since they will be used by pulsar api - Change the shading rules for pulsar-client-admin to make sure they have same shading rules as client, so they can be used together. *Changes* - Exclude `org.apache.pulsar.common` from pulsar-client shading rule - Change shade class prefix for `pulsar-client-admin` * Use pulsar-client-original in s3-offload integration --- pulsar-client-admin-shaded/pom.xml | 40 ++++++++++++++-------------- pulsar-client-shaded/pom.xml | 4 --- tests/integration/s3-offload/pom.xml | 2 +- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/pulsar-client-admin-shaded/pom.xml b/pulsar-client-admin-shaded/pom.xml index 4f06fbb4485e8..5197963454e1e 100644 --- a/pulsar-client-admin-shaded/pom.xml +++ b/pulsar-client-admin-shaded/pom.xml @@ -130,83 +130,83 @@ org.asynchttpclient - org.apache.pulsar.admin.shade.org.asynchttpclient + org.apache.pulsar.shade.org.asynchttpclient org.apache.commons - org.apache.pulsar.admin.shade.org.apache.commons + org.apache.pulsar.shade.org.apache.commons com.google - org.apache.pulsar.admin.shade.com.google + org.apache.pulsar.shade.com.google com.fasterxml.jackson - org.apache.pulsar.admin.shade.com.fasterxml.jackson + org.apache.pulsar.shade.com.fasterxml.jackson io.netty - org.apache.pulsar.admin.shade.io.netty + org.apache.pulsar.shade.io.netty org.apache.pulsar.policies - org.apache.pulsar.admin.shade.org.apache.pulsar.policies + org.apache.pulsar.shade.org.apache.pulsar.policies org.apache.pulsar.checksum - org.apache.pulsar.admin.shade.org.apache.pulsar.checksum + org.apache.pulsar.shade.org.apache.pulsar.checksum com.scurrilous.circe - org.apache.pulsar.admin.shade.com.scurrilous.circe + org.apache.pulsar.shade.com.scurrilous.circe net.jpountz - org.apache.pulsar.admin.shade.net.jpountz + org.apache.pulsar.shade.net.jpountz com.yahoo - org.apache.pulsar.admin.shade.com.yahoo + org.apache.pulsar.shade.com.yahoo com.typesafe - org.apache.pulsar.admin.shade.com.typesafe + org.apache.pulsar.shade.com.typesafe org.glassfish - org.apache.pulsar.admin.shade.org.glassfish + org.apache.pulsar.shade.org.glassfish javax.ws - org.apache.pulsar.admin.shade.javax.ws + org.apache.pulsar.shade.javax.ws javax.annotation - org.apache.pulsar.admin.shade.javax.annotation + org.apache.pulsar.shade.javax.annotation jersey - org.apache.pulsar.admin.shade.jersey + org.apache.pulsar.shade.jersey org.jvnet - org.apache.pulsar.admin.shade.org.jvnet + org.apache.pulsar.shade.org.jvnet org.aopalliance - org.apache.pulsar.admin.shade.org.aopalliance + org.apache.pulsar.shade.org.aopalliance javassist - org.apache.pulsar.admin.shade.javassist + org.apache.pulsar.shade.javassist javax.inject - org.apache.pulsar.admin.shade.javax.inject + org.apache.pulsar.shade.javax.inject org.reactivestreams - org.apache.pulsar.admin.shade.org.reactivestreams + org.apache.pulsar.shade.org.reactivestreams org.apache.avro diff --git a/pulsar-client-shaded/pom.xml b/pulsar-client-shaded/pom.xml index f88f90c33a5e6..bc2d565e1ba05 100644 --- a/pulsar-client-shaded/pom.xml +++ b/pulsar-client-shaded/pom.xml @@ -146,10 +146,6 @@ io.netty org.apache.pulsar.shade.io.netty - - org.apache.pulsar.common - org.apache.pulsar.shade.org.apache.pulsar.common - org.apache.pulsar.policies org.apache.pulsar.shade.org.apache.pulsar.policies diff --git a/tests/integration/s3-offload/pom.xml b/tests/integration/s3-offload/pom.xml index 2d4812a81d178..ad2d5ebebb861 100644 --- a/tests/integration/s3-offload/pom.xml +++ b/tests/integration/s3-offload/pom.xml @@ -40,7 +40,7 @@ org.apache.pulsar - pulsar-client + pulsar-client-original ${project.version}