Skip to content

Project setup

Leonhard edited this page Oct 19, 2020 · 3 revisions

Project setup:

You can check out the latest builds here:

  1. Place this in your repository-section:
<!-- JitPack-Repo -->
<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>
  1. Place this in your dependency-section:

Version: Find the latest version of SimplixStorage here

Maven:

<dependency>
  <groupId>com.github.simplix-softworks</groupId>
  <artifactId>simplixstorage</artifactId>
  <version>VERSION <!-- Replace me with the current version --></version>
</dependency>

Gradle:

dependencies {
    compile 'com.github.simplix-softworks:simplixstorage:VERSION'/* Replace me with the current version */
}
  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. (Just change 'yourpackage.yourname' to the needed values)
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-shade-plugin</artifactId>
  <version>3.1.0</version>
  <executions>
    <execution>
    <phase>package</phase>
    <goals>
      <goal>shade</goal>
    </goals>
    </execution>
  </executions>
  <configuration>
    <createDependencyReducedPom>false</createDependencyReducedPom>
    <relocations>
      <relocation>
        <pattern>de.leonhard.storage</pattern>
        <shadedPattern>yourpackage.yourname.storage</shadedPattern>
      </relocation>
    </relocations>
  </configuration>
</plugin>

Questions?

We kindly welcome your inquiries at the issues section. For direct help, we welcome you to our Discord server.

Clone this wiki locally