Skip to content

Commit

Permalink
Shade pulsar-client-admin (apache#112)
Browse files Browse the repository at this point in the history
* Provide a shade `pulsar-client-admin` module

* avoid shaded pulsar direct depenencies

* Shade `pulsar-client-tools-shaded` as well
  • Loading branch information
sijie committed Mar 4, 2018
1 parent 45c807e commit 8d4ff95
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
4 changes: 2 additions & 2 deletions pulsar-client-admin-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@
</includes>
</filter>
<filter>
<artifact>org.apache.pulsar:pulsar-client-original</artifact>
<artifact>org.apache.pulsar:pulsar-client-admin-original</artifact>
<includes>
<include>**</include>
</includes>
</filter>
</filters>
<relocations>
<relocation>
<relocation>
<pattern>org.asynchttpclient</pattern>
<shadedPattern>org.apache.pulsar.admin.shade.org.asynchttpclient</shadedPattern>
</relocation>
Expand Down
18 changes: 3 additions & 15 deletions pulsar-client-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@

<artifactSet>
<includes>
<include>org.apache.pulsar:pulsar-common</include>
<include>org.apache.bookkeeper:circe-checksum</include>
<include>org.apache.pulsar:pulsar-client-original</include>
<!-- client dependencies -->
<include>org.apache.commons:commons-lang3</include>
<include>commons-codec:commons-codec</include>
<include>commons-collections:commons-collections</include>
Expand All @@ -76,9 +79,6 @@
<include>io.netty:netty</include>
<include>io.netty:netty-all</include>
<include>io.netty:netty-tcnative-boringssl-static</include>

<include>org.apache.pulsar:pulsar-common</include>
<include>org.apache.bookkeeper:circe-checksum</include>
<include>net.jpountz.lz4:lz4</include>
<include>com.yahoo.datasketches:sketches-core</include>
<include>org.apache.httpcomponents:httpclient</include>
Expand Down Expand Up @@ -127,18 +127,6 @@
<pattern>io.netty</pattern>
<shadedPattern>org.apache.pulsar.shade.io.netty</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.pulsar.common</pattern>
<shadedPattern>org.apache.pulsar.shade.org.apache.pulsar.common</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.pulsar.policies</pattern>
<shadedPattern>org.apache.pulsar.shade.org.apache.pulsar.policies</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.pulsar.checksum</pattern>
<shadedPattern>org.apache.pulsar.shade.org.apache.pulsar.checksum</shadedPattern>
</relocation>
<relocation>
<pattern>com.scurrilous.circe</pattern>
<shadedPattern>org.apache.pulsar.shade.com.scurrilous.circe</shadedPattern>
Expand Down
4 changes: 4 additions & 0 deletions pulsar-client-tools-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@
<pattern>com.google</pattern>
<shadedPattern>org.apache.pulsar.shade.com.google</shadedPattern>
</relocation>
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>org.apache.pulsar.shade.com.fasterxml.jackson</shadedPattern>
</relocation>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>org.apache.pulsar.shade.io.netty</shadedPattern>
Expand Down
2 changes: 1 addition & 1 deletion pulsar-functions/cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>pulsar-client-tools</artifactId>
<artifactId>pulsar-client-tools-shaded</artifactId>
<version>${project.version}</version>
</dependency>

Expand Down

0 comments on commit 8d4ff95

Please sign in to comment.