-
Notifications
You must be signed in to change notification settings - Fork 9
Maven repository
Daniel Saukel edited this page Jul 27, 2021
·
3 revisions
If you don't like to shade Caliburn into your final Java archive, you can use ItemsXL as a runtime dependency instead.
<dependency>
<groupId>de.erethon</groupId>
<artifactId>caliburn</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>de.erethon</groupId>
<artifactId>itemsxl</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
<repository>
<id>dre-repo</id>
<url>https://erethon.de/repo/</url>
</repository>
Note that ItemsXL is, unlike Caliburn, not supposed to be shaded into your final Java archive. DRECommons may be relocated or not, but Caliburn is not supposed to be relocated sothat multiple implementations running simultaneously (e.g. ItemsXL and DungeonsXL) can use the same item / mob / ... registries.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>de.erethon:commons</include>
<include>de.erethon:caliburn</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>de.erethon.commons</pattern>
<shadedPattern>your.package.commons</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
Wiki: © 2016-2020 Daniel Saukel and contributors, licensed under CC BY-SA