Skip to main content

Setup

This page covers the setup for using PetarLib in your Bukkit/Spigot/Paper project(s).

Gradle

Add the PetarMc Maven repository and the dependency in your build.gradle.

build.gradle
repositories {
maven {
url "https://repo.petarmc.com/repository/maven-public/"
}
}

dependencies {
modImplementation "com.petarmc.petarlib:petarlib-bukkit:x.x.x"
}

Maven

Add the Petar_mv Maven repository and the dependency in your pom.xml:

pom.xml
<repositories>
<repository>
<id>petarmc</id>
<url>https://repo.petarmc.com/repository/maven-public/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.petarmc.petarlib</groupId>
<artifactId>petarlib-bukkit</artifactId>
<version>x.x.x</version>
<scope>provided</scope>
</dependency>
</dependencies>

plugin.yml

Make sure to include the dependency in your plugin.yml:

plugin.yml
name: MyPlugin
version: '1.0.0'
main: com.petarmc.myplugin.Main
api-version: '1.21'
prefix: myplugin
authors: [ Petar_mc ]
website: https://petarmc.com
depend:
- PetarLib