Skip to content

Commit

Permalink
fix: prevent relocating urls that start with com like /computeMetadat…
Browse files Browse the repository at this point in the history
…a/ (#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.
  • Loading branch information
yunus committed Jun 16, 2021
1 parent a9aa894 commit 1178a1d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pom.xml
Expand Up @@ -333,26 +333,26 @@
<configuration>
<relocations>
<relocation>
<pattern>com</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.com</shadedPattern>
<pattern>com.</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.com.</shadedPattern>
<excludes>
<exclude>com.google.cloud.spanner.**</exclude>
</excludes>
</relocation>
<relocation>
<pattern>android</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.android</shadedPattern>
<pattern>android.</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.android.</shadedPattern>
</relocation>
<relocation>
<pattern>io</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.io</shadedPattern>
<pattern>io.</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.io.</shadedPattern>
<excludes>
<exclude>io.grpc.netty.shaded.**</exclude>
</excludes>
</relocation>
<relocation>
<pattern>org</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.org</shadedPattern>
<pattern>org.</pattern>
<shadedPattern>com.google.cloud.spanner.jdbc.shaded.org.</shadedPattern>
<excludes>
<exclude>org.conscrypt.**</exclude>
</excludes>
Expand Down

0 comments on commit 1178a1d

Please sign in to comment.