Installation
Adding the Dependency
Add toolbar-core to your project's build file using your preferred build system:
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository></repositories>
<dependencies> <dependency> <groupId>com.tofpu.toolbar</groupId> <artifactId>toolbar-core</artifactId> <version>VERSION</version> <scope>compile</scope> </dependency></dependencies>repositories { maven { url 'https://jitpack.io' }}
dependencies { implementation 'com.tofpu.toolbar:toolbar-core:VERSION'}repositories { maven("https://jitpack.io")}
dependencies { implementation("com.tofpu.toolbar:toolbar-core:VERSION")}Relocation (Shading)
To prevent runtime classpath conflicts with other plugins, shade and relocate the library into your own project's package structure (your.org.plugin.libs.toolbar).
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.5.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <relocations> <relocation> <pattern>com.tofpu.toolbar</pattern> <shadedPattern>your.org.plugin.libs.toolbar</shadedPattern> </relocation> </relocations> </configuration> </execution> </executions></plugin>plugins { id 'com.gradleup.shadow' version '9.4.3'}
shadowJar { relocate 'com.tofpu.toolbar', 'your.org.plugin.libs.toolbar'}plugins { id("com.gradleup.shadow") version "9.4.3"}
tasks.shadowJar { relocate("com.tofpu.toolbar", "your.org.plugin.libs.toolbar")}