Sueta
LI

Lilliputian | The only Library you will ever need!

0.1

Never shade again. The only Library you will ever need!

·Plugin

Lilliputian

Never shade again! The only dependency you will ever need!

Lilliputian benefits

  • Reduce Jar size, no longer have to shade dependencies.
  • Other plugins can use the same pool of dependencies.
  • Incredibly small, only 8kb!


Installation

Using Lilliputian is extremely easy. Please check how to use it in the example!

public class ExampleMain extends JavaPlugin {

    @Override
    public void onEnable() {
        final Lilliputian lilliputian = new Lilliputian(this);
        lilliputian.getDependencyBuilder()

                // Jitpack
                .addDependency(new Dependency(
                        Repository.JITPACK,
                        "com.github.retrooper",
                        "packetevents",
                        "1.6.9"))

                // Maven Central
                .addDependency(new Dependency(
                        Repository.MAVENCENTRAL,
                        "commons-io",
                        "commons-io",
                        "2.8.0"))

                // Custom repository
                .addDependency(new Dependency(
                        "https://jitpack.io",
                        "com.github.ProtocolSupport",
                        "ProtocolSupport",
                        "4fdd683"))
                .loadDependencies();

        PacketEvents.init(this);
        PacketEvents.getSettings().setIdentifier("Lilliputian");

        System.out.println(PacketEvents.getSettings().getIdentifier());

        System.out.println(FileUtils.getTempDirectory().getAbsolutePath());
    }
}


Support

For support, please join the official support server

License



Lilliputian is licensed under the MIT License

Similar projects

Plugin →