Skip to content

How to setup

Leonhard edited this page Nov 19, 2019 · 5 revisions

Setup

  1. Place this in your repository-section:
 <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository>
  1. Place this in your dependency-section:
 <!-- LightningStorage by JavaFactoryDev and Zeanon--> <dependency> <groupId>com.github.JavaFactoryDev</groupId> <artifactId>LightningStorage</artifactId> <version>3.0-Beta-1</version> </dependency>
  1. Important! Use a shade plugin to make sure that the library is shaded into your final .jar file when your plugin is compiled. The relocation is optional but heavily recommended.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> <configuration> <relocations> <relocation> <pattern>de.leonhard</pattern> <shadedPattern>yourpackage.yourname.storage</shadedPattern> </relocation> </relocations> <createDependencyReducedPom>false</createDependencyReducedPom> </configuration> </plugin>
Clone this wiki locally