Skip to content

KyTDK/NeoUtils

Repository files navigation

NeoUtils

Utils for spigot development

For details on this API read the Wiki page here https://github.com/KyTDK/NeoUtils/wiki

HOW TO INSTALL

For maven

<repository>
    <id>neomechanical-snapshots</id>
    <url>https://hub.neomechanical.com/repository/maven-snapshots/</url>
</repository>
<!-- NeoUtils -->
<dependency>
    <groupId>com.neomechanical</groupId>
    <artifactId>NeoUtils</artifactId>
    <version>2.0.0-SNAPSHOT</version>
</dependency>

RELOCATION

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.3.0</version>
    <configuration>
    <minimizeJar>true</minimizeJar> <!--If you do minimize the jar, you must apply the filter otherwise essential classes will be excluded from the final jar-->
        <relocations>
            <relocation>
                <pattern>com.neomechanical.neoutils</pattern>
                <shadedPattern>YOUR.PACKAGE.neoutils</shadedPattern>
                </relocation>
        </relocations>
        <filters>
            <filter>
                <artifact>*:*</artifact>
                <excludeDefaults>false</excludeDefaults>
                <includes>
                    <include>com/neomechanical/neoutils/**</include>
                </includes>
            </filter>
        </filters>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
             <goals>
                 <goal>shade</goal>
              </goals>
        </execution>
    </executions>
</plugin>