Skip to content

Commit

Permalink
fix: reshading and relocating dependencies to avoid class loader errors
Browse files Browse the repository at this point in the history
  • Loading branch information
samfces committed Aug 23, 2022
1 parent 35ee986 commit 8398140
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<version>3.3.1-SNAPSHOT</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<createSourcesJar>true</createSourcesJar>
<artifactSet>
<includes>
<include>io.socket:socket.io-client</include>
Expand All @@ -37,9 +36,33 @@
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>io.socket</pattern>
<shadedPattern>io.v4guard.shaded.io.socket</shadedPattern>
</relocation>
<relocation>
<pattern>okhttp3</pattern>
<shadedPattern>io.v4guard.shaded.okhttp3</shadedPattern>
</relocation>
<relocation>
<pattern>okio</pattern>
<shadedPattern>io.v4guard.shaded.okio</shadedPattern>
</relocation>
<relocation>
<pattern>org.bson</pattern>
<shadedPattern>io.v4guard.shaded.org.bson</shadedPattern>
</relocation>
<relocation>
<pattern>org.json</pattern>
<shadedPattern>io.v4guard.shaded.org.json</shadedPattern>
</relocation>
<relocation>
<pattern>kotlin</pattern>
<shadedPattern>io.v4guard.shaded.kotlin</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>io.v4guard.shaded.bstats</shadedPattern>
<shadedPattern>io.v4guard.shaded.org.bstats</shadedPattern>
</relocation>
</relocations>
</configuration>
Expand Down

0 comments on commit 8398140

Please sign in to comment.