Fixed maven shade to handle bstats and knarlib.

This commit is contained in:
Pheotis
2023-03-25 17:02:55 -04:00
parent bd947d5c94
commit e6c92f9322

19
pom.xml
View File

@@ -113,19 +113,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>org.bstats:*</include>
<include>net.knarcraft:knarlib</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>net.knarcraft.stargate</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
@@ -134,7 +130,16 @@
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>net.knarcraft.stargate.metrics</shadedPattern>
</relocation>
<relocation>
<pattern>net.knarcraft</pattern>
<shadedPattern>net.knarcraft</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>net.knarcraft:knarlib</artifact>