- Git installed;
- JDK 16 installed (JDK 21 for branches related to 1.20.6+);
- BuildTools ran for all Minecraft versions of the branch you are on;
- If you are on the "1.20.6+" branch, you don't need to do that;
- This can be automated by running the
scripts/buildtools/build-spigot.shscript;- For this approach, you will need to have installed:
- SDKMAN!;
- curl.
- For this approach, you will need to have installed:
- Run
./gradlew build; - The .jar to use on the Spigot (or Paper) server will be located at
core/build/libs/WLib-<version>.jar; - The .jar to use on BungeeCord will be located at
bungee/build/libs/WLib-BungeeCord-<version>.jar.
Follow the Gradle instructions or the Maven instructions
(Soon I will show how to do it)
Then add the dependency. Replace MODULE with a module and VERSION with a version
Maven:
<dependencies>
<dependency>
<groupId>com.wizardlybump17.wlib</groupId>
<artifactId>MODULE</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
</dependencies>Gradle:
dependencies {
implementation('com.wizardlybump17.wlib:MODULE:VERSION')
}To add it into your plugin, add the following at your plugin.yml
softdepend: [WLib]