Installation
Maven :
Add the GitHub Packages repository and the following dependency to your pom.xml
:
<repositories>
<repository>
<id>github</id>
<name>BlurpAPI</name>
<url>https://maven.pkg.github.com/bloupyi/BlurpAPI</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>fr.bloup</groupId>
<artifactId>blurpapi</artifactId>
<version>VERSION</version>
</dependency>
</dependencies>
Replace VERSION
with the desired version. Don't forget to configure your GitHub credentials for repository access if needed.
Gradle :
build.gradle
repositories {
maven {
url = uri("https://maven.pkg.github.com/bloupyi/BlurpAPI")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_TOKEN")
}
}
}
dependencies {
implementation 'fr.bloup:blurpapi:VERSION'
}
Replace VERSION
with the desired version.
gradle.properties
gpr.user=*github username*
gpr.key=*github token*
Initialization :
After that, you will need to initialize the API in your main class of your plugin. Like that:
public final class Main extends JavaPlugin {
@Override
public void onEnable() {
BlurpAPI.init(this);
}
}
Last updated