-
Notifications
You must be signed in to change notification settings - Fork 1
Gradle Import
Dalton edited this page Apr 29, 2022
·
7 revisions
Firstly you need a shadow plugin to shade the API into your plugin:
Note: If you already have a shade plugin setup, then jump to the last 2 code blocks they are all that matter to you.
plugins {
id 'java' // You should already have this
id "com.github.johnrengelman.shadow" version "7.1.2"
}
After this, you need to setup shadowJar task, this snippet can be put anywhere into your build.gradle:
shadowJar {
archiveBaseName.set('JarNameYouWant')
}
Next, you need to import the JitPack repository, this snippet can be put anywhere in your build.gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
From here, you then need to add the Dependency into your dependencies:
dependencies {
. . .
implementation 'com.github.Burchard36:BurchAPI:2.1.7'
}
Then after you do this, simply run the shadowJar
task and use the jar with BurchAPI shaded in! (It will be the name of the name your set in the shadowJar task)
Page written by: Dalton Burchard
- Your main class and you
- Editing API Settings (Optional)
- Creating an PluginInventory
- Creating Clickable items
- (Not added yet) Examples