Skip to content

Commit

Permalink
Added shaded artifact for Oxia client (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Jan 30, 2024
1 parent d133018 commit 3ccfd49
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@
<properties>
<caffeine.version>3.1.4</caffeine.version>
<grpc-test.version>1.2.2</grpc-test.version>
<maven.shade.plugin.version>3.4.1</maven.shade.plugin.version>
<javax.annotation.version>1.3.2</javax.annotation.version>
<protobuf.version>3.25.0</protobuf.version>
<reactor.version>3.5.2</reactor.version>
<reactor-grpc.version>1.2.4</reactor-grpc.version>
<zah.version>0.16</zah.version>

<shade.relocation.package>io.streamnative.oxia.shaded</shade.relocation.package>
</properties>

<dependencies>
Expand Down Expand Up @@ -102,6 +105,91 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<phase>package</phase>
<configuration>
<createSourcesJar>true</createSourcesJar>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<relocations>
<relocation>
<pattern>com.github.benmanes.caffeine</pattern>
<shadedPattern>${shade.relocation.package}.com.github.benmanes.caffeine</shadedPattern>
</relocation>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>${shade.relocation.package}.com.google</shadedPattern>
</relocation>
<relocation>
<pattern>com.salesforce</pattern>
<shadedPattern>${shade.relocation.package}.com.salesforce</shadedPattern>
</relocation>
<relocation>
<pattern>google</pattern>
<shadedPattern>${shade.relocation.package}.google</shadedPattern>
</relocation>
<relocation>
<pattern>io.grpc</pattern>
<shadedPattern>${shade.relocation.package}.io.grpc</shadedPattern>
</relocation>
<relocation>
<pattern>io.perfmark</pattern>
<shadedPattern>${shade.relocation.package}.io.perfmark</shadedPattern>
</relocation>
<relocation>
<pattern>javax.annotation</pattern>
<shadedPattern>${shade.relocation.package}.javax.annotation</shadedPattern>
</relocation>
<relocation>
<pattern>net.openhft</pattern>
<shadedPattern>${shade.relocation.package}.net.openhft</shadedPattern>
</relocation>
<relocation>
<pattern>org.codehaus</pattern>
<shadedPattern>${shade.relocation.package}.org.codehaus</shadedPattern>
</relocation>
<relocation>
<pattern>okio</pattern>
<shadedPattern>${shade.relocation.package}.okio</shadedPattern>
</relocation>
<relocation>
<pattern>org.checkerframework</pattern>
<shadedPattern>${shade.relocation.package}.org.checkerframework</shadedPattern>
</relocation>
<relocation>
<pattern>org.reactivestreams</pattern>
<shadedPattern>${shade.relocation.package}.org.reactivestreams</shadedPattern>
</relocation>
<relocation>
<pattern>reactor</pattern>
<shadedPattern>${shade.relocation.package}.reactor</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>module-info.class</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down

0 comments on commit 3ccfd49

Please sign in to comment.