How to Use
Maven
<builds>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<!-- Relocations(Optional)
<relocations>
<relocation>
<pattern>io.github.portlek.workload</pattern>
<shadedPattern>[YOUR_PLUGIN_PACKAGE].shade</shadedPattern>
</relocation>
</relocations>
-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</builds>
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.portlek</groupId>
<artifactId>workload</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
Gradle
plugins {
id "com.github.johnrengelman.shadow" version "7.0.0"
}
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
implementation("com.github.portlek:workload:${version}")
}
Guide