Shading
1
2
Add Dependency
dependencies {
implementation 'com.github.SytexMC:Stylize:2.0.0'
}
dependencies {
implementation("com.github.SytexMC:Stylize:2.0.0")
}
<dependencies>
<dependency>
<groupId>com.github.SytexMC</groupId>
<artifactId>Stylize</artifactId>
<version>2.0.0</version>
</dependency>
</dependencies>
3
Shade & Relocate Dependency
plugins {
id 'com.gradleup.shadow' version '8.3.6'
}
tasks {
shadowJar {
// TODO: Change this to my own package name
relocate("me.sytex.stylize", "my.custom.package.stylize")
}
}
plugins {
id("com.gradleup.shadow") version "8.3.6"
}
tasks {
shadowJar {
// TODO: Change this to my own package name
relocate("me.sytex.stylize", "my.custom.package.stylize")
}
}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>me.sytex.stylize</pattern>
<!-- TODO: Change this to my own package name -->
<shadedPattern>my.custom.package.stylize</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
</plugins>
</build>
Last updated