Adds POM relocations

This commit is contained in:
Kristian Knarvik 2024-05-03 15:19:15 +02:00
parent eceb7fc6d2
commit bfc0eb7334

24
pom.xml
View File

@ -31,7 +31,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version> <version>3.3.0</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>
@ -40,6 +40,20 @@
</goals> </goals>
<configuration> <configuration>
<createDependencyReducedPom>false</createDependencyReducedPom> <createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
<relocation>
<pattern>net.knarcraft.knarlib</pattern>
<shadedPattern>net.knarcraft.minigames.lib.knarlib</shadedPattern>
</relocation>
<relocation>
<pattern>net.knarcraft.knargui</pattern>
<shadedPattern>net.knarcraft.minigames.lib.knargui</shadedPattern>
</relocation>
<relocation>
<pattern>org.jetbrains.annotations</pattern>
<shadedPattern>net.knarcraft.minigames.lib.annotations</shadedPattern>
</relocation>
</relocations>
<filters> <filters>
<filter> <filter>
<artifact>net.knarcraft:knarlib</artifact> <artifact>net.knarcraft:knarlib</artifact>
@ -53,6 +67,12 @@
<include>net/knarcraft/knargui/**</include> <include>net/knarcraft/knargui/**</include>
</includes> </includes>
</filter> </filter>
<filter>
<artifact>org.jetbrains:annotations</artifact>
<includes>
<include>org/jetbrains/annotations/**</include>
</includes>
</filter>
<filter> <filter>
<excludes> <excludes>
<exclude>*.MF</exclude> <exclude>*.MF</exclude>
@ -107,7 +127,7 @@
<groupId>org.jetbrains</groupId> <groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId> <artifactId>annotations</artifactId>
<version>24.0.1</version> <version>24.0.1</version>
<scope>provided</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>me.clip</groupId> <groupId>me.clip</groupId>