shade in mysql and jda

This commit is contained in:
destro174 2021-09-11 18:02:15 +02:00
parent db46624712
commit eeb3094946

20
pom.xml
View File

@ -44,14 +44,30 @@
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>net.kyori:adventure-text-minimessage</include>
<include>mysql:mysql-connector-java</include>
<include>net.dv8tion:JDA</include>
</includes>
<excludes>
<exclude>META-INF/*.MF</exclude>
</excludes>
</artifactSet>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/services/java.sql.Driver</resource>
</transformer>
</transformers>
<relocations>
<relocation>
<pattern>net.kyori.adventure.text.minimessage</pattern>
<shadedPattern>com.alttd.proxyutils.libs.net.kyori.adventure.text.minimessage</shadedPattern>
<shadedPattern>com.alttd.proxydiscordlink.libs.net.kyori.adventure.text.minimessage</shadedPattern>
</relocation>
<relocation>
<pattern>net.dv8tion</pattern>
<shadedPattern>com.alttd.proxyutils.libs.net.dv8tion</shadedPattern>
<shadedPattern>com.alttd.proxydiscordlink.libs.net.dv8tion</shadedPattern>
</relocation>
</relocations>
</configuration>