HomeJavaModsBukkitDependencyLoader
Are you a plugin developer?
Are you tired of huge JAR files?
Do you want to reduce the file size of your plugin?
Do you want to prevent loading the same library
multiple times?

The solution is here:

BukkitDependencyLoader

This plugin allows you to load dependencies from any Maven-compatible source directly into the server.
No need to shade your plugins anymore!

Simply add a dependency on this plugin and create a file called dependencies.conf and add each Maven artifact like this:

Add this to your
plugin.yml :
Code (Text):
depend: [BukkitDependencyLoader]

Put lines like this into the
dependencies.conf :
Code (Text):
artifact=<groupid>:<artifactid>:<version>
You can even specify other repositories:
Code (Text):
repository=<id>:<url>
The libraries will be downloaded and made available to all plugins.
Java takes care of preventing duplicates.

An example implementation can be found here.


The dependencies.conf looks like this:

Code (Text):
repository=bintray-kotlin-exposed:http://dl.bintray.com/kotlin/exposed
artifact=joda-time:joda-time:2.9.9
artifact=com.h2database:h2:1.4.194
artifact=org.jetbrains.exposed:exposed:0.7.6
artifact=org.jetbrains.kotlin:kotlin-stdlib:1.1.1
artifact=org.jetbrains.kotlin:kotlin-reflect:1.1.1
artifact=org.slf4j:slf4j-jdk14:1.7.25
That plugin is completely written in Kotlin but there is no need to shade Kotlin into the JAR, as this plugin loads all libraries prior to loading that plugin.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

BukkitDependencyLoader is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11. Downloaded 122 times (via Spigot). Download it and open it directly in the game.

Explore more