Skip to content

Commit 1178a1d

Browse files
authored
fix: prevent relocating urls that start with com like /computeMetadata/ (#511)
Fixes #503 In addition to original problem I have added an exception for all the Netty libraries since I have got errors on service provider which claims that netty libraries are not a subtype.
1 parent a9aa894 commit 1178a1d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pom.xml

+8-8
Original file line numberDiff line numberDiff line change
@@ -333,26 +333,26 @@
333333
<configuration>
334334
<relocations>
335335
<relocation>
336-
<pattern>com</pattern>
337-
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.com</shadedPattern>
336+
<pattern>com.</pattern>
337+
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.com.</shadedPattern>
338338
<excludes>
339339
<exclude>com.google.cloud.spanner.**</exclude>
340340
</excludes>
341341
</relocation>
342342
<relocation>
343-
<pattern>android</pattern>
344-
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.android</shadedPattern>
343+
<pattern>android.</pattern>
344+
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.android.</shadedPattern>
345345
</relocation>
346346
<relocation>
347-
<pattern>io</pattern>
348-
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.io</shadedPattern>
347+
<pattern>io.</pattern>
348+
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.io.</shadedPattern>
349349
<excludes>
350350
<exclude>io.grpc.netty.shaded.**</exclude>
351351
</excludes>
352352
</relocation>
353353
<relocation>
354-
<pattern>org</pattern>
355-
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.org</shadedPattern>
354+
<pattern>org.</pattern>
355+
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.org.</shadedPattern>
356356
<excludes>
357357
<exclude>org.conscrypt.**</exclude>
358358
</excludes>

0 commit comments

Comments
 (0)