|
56 | 56 | <groupId>com.datastax.oss</groupId>
|
57 | 57 | <artifactId>native-protocol</artifactId>
|
58 | 58 | </dependency>
|
59 |
| - <dependency> |
60 |
| - <groupId>org.apache.cassandra</groupId> |
61 |
| - <artifactId>java-driver-guava-shaded</artifactId> |
62 |
| - </dependency> |
63 | 59 | <dependency>
|
64 | 60 | <groupId>com.typesafe</groupId>
|
65 | 61 | <artifactId>config</artifactId>
|
|
163 | 159 | - All the dependencies we want to shade & relocate.
|
164 | 160 | -->
|
165 | 161 | <include>org.apache.cassandra:java-driver-core</include>
|
| 162 | + <include>com.google.guava:*</include> |
166 | 163 | <include>io.netty:*</include>
|
167 | 164 | <include>com.fasterxml.jackson.core:*</include>
|
168 | 165 | </includes>
|
|
180 | 177 | <pattern>com.fasterxml.jackson</pattern>
|
181 | 178 | <shadedPattern>com.datastax.oss.driver.shaded.fasterxml.jackson</shadedPattern>
|
182 | 179 | </relocation>
|
| 180 | + <relocation> |
| 181 | + <pattern>com.google</pattern> |
| 182 | + <shadedPattern>com.datastax.oss.driver.shaded.guava</shadedPattern> |
| 183 | + </relocation> |
183 | 184 | </relocations>
|
184 | 185 | <filters>
|
185 | 186 | <!-- Exclude everything under META-INF -->
|
|
203 | 204 | <exclude>META-INF/**</exclude>
|
204 | 205 | </excludes>
|
205 | 206 | </filter>
|
| 207 | + <filter> |
| 208 | + <artifact>com.google.guava:*</artifact> |
| 209 | + <excludes> |
| 210 | + <exclude>META-INF/**</exclude> |
| 211 | + </excludes> |
| 212 | + </filter> |
206 | 213 | </filters>
|
207 | 214 | </configuration>
|
208 | 215 | </execution>
|
|
296 | 303 | <DynamicImport-Package>*</DynamicImport-Package>
|
297 | 304 | <Import-Package>
|
298 | 305 | <!--
|
299 |
| - 1) Don't import packages shaded in the driver bundle. Note that shaded-guava lives |
300 |
| - in its own bundle, so we must explicitly *not* mention it here. |
301 |
| - -->!com.datastax.oss.driver.shaded.netty.*, !com.datastax.oss.driver.shaded.fasterxml.jackson.*, |
| 306 | + 1) Don't import packages shaded in the driver bundle. |
| 307 | + -->!com.datastax.oss.driver.shaded.netty.*, !com.datastax.oss.driver.shaded.fasterxml.jackson.*, !com.datastax.oss.driver.shaded.guava.*, |
302 | 308 | <!--
|
303 | 309 | 2) Don't include the packages below because they contain annotations only and are
|
304 | 310 | not required at runtime.
|
|
317 | 323 | <!--
|
318 | 324 | 5) Don't import packages imported by shaded classes, if they are not used by the
|
319 | 325 | driver bundle.
|
320 |
| - -->!com.google.protobuf.*, !com.jcraft.jzlib.*, !com.ning.compress.*, !lzma.sdk.*, !net.jpountz.xxhash.*, !org.bouncycastle.*, !org.conscrypt.*, !org.apache.commons.logging.*, !org.apache.log4j.*, !org.apache.logging.log4j.*, !org.eclipse.jetty.*, !org.jboss.marshalling.*, !sun.misc.*, !sun.security.*, !com.barchart.udt.*, !com.fasterxml.aalto.*, !com.sun.nio.sctp.*, !gnu.io.*, !org.xml.sax.*, !org.w3c.dom.*, !com.aayushatharva.brotli4j.*, !com.github.luben.zstd.*, * |
| 326 | + -->!com.google.protobuf.*, !com.jcraft.jzlib.*, !com.ning.compress.*, !lzma.sdk.*, !net.jpountz.xxhash.*, !org.bouncycastle.*, !org.conscrypt.*, !org.apache.commons.logging.*, !org.apache.log4j.*, !org.apache.logging.log4j.*, !org.eclipse.jetty.*, !org.jboss.marshalling.*, sun.misc.*;resolution:=optional, !sun.security.*, !com.barchart.udt.*, !com.fasterxml.aalto.*, !com.sun.nio.sctp.*, !gnu.io.*, !org.xml.sax.*, !org.w3c.dom.*, !com.aayushatharva.brotli4j.*, !com.github.luben.zstd.*, javax.annotation.*;resolution:=optional;version="[3.0,4)", javax.crypto.*;resolution:=optional, !com.datastax.oss.driver.shaded.guava.errorprone.*, !org.checkerframework.*, * |
321 | 327 | </Import-Package>
|
322 | 328 | <!--
|
323 | 329 | Export:
|
324 | 330 | 1) The driver's packages (API and internal);
|
325 |
| - 2) All shaded packages, except Guava which resides in a separate bundle. |
| 331 | + 2) All shaded packages. |
326 | 332 | -->
|
327 |
| - <Export-Package>com.datastax.oss.driver.api.core.*, com.datastax.oss.driver.internal.core.*, com.datastax.dse.driver.api.core.*, com.datastax.dse.driver.internal.core.*, com.datastax.oss.driver.shaded.netty.*, com.datastax.oss.driver.shaded.fasterxml.jackson.*,</Export-Package> |
| 333 | + <Export-Package>!com.datastax.oss.driver.shaded.guava.errorprone.*, com.datastax.oss.driver.api.core.*, com.datastax.oss.driver.internal.core.*, com.datastax.dse.driver.api.core.*, com.datastax.dse.driver.internal.core.*, com.datastax.oss.driver.shaded.netty.*, com.datastax.oss.driver.shaded.fasterxml.jackson.*, com.datastax.oss.driver.shaded.guava.*</Export-Package> |
328 | 334 | </instructions>
|
329 | 335 | <rebuildBundle>true</rebuildBundle>
|
330 | 336 | </configuration>
|
|
0 commit comments