Sueta

KtLoader

1.3.41

A bukkit plugin that provides the JVM with the Kotlin Standard Library. Reduces final JAR size.

·Plugin

KtLoader
A bukkit plugin that provides the JVM with the Kotlin Standard Library.

Why does this exist?
The spigot.org resource section has a maximum upload file size of 4 MB. Like myself, plugin developers that choose to write their plugins in kotlin will sometimes run into the issue of their final JAR size being too large to upload. In an effort to combat this restraint, KtLoader provides the Kotlin Standard Library rather than your final JAR.

Reduced size
Depending on KtLoader instead of providing the Kotlin Standard Library in your final JAR will reduce your file size by 1.4 MB.

KtLoader for developers

  • If using maven, set the kotlin-stdlib dependency scope to provided.
  • If using gradle, use the compileOnly dependency configuration instead of api or implementation.
  • Add KtLoader to your plugin.yml's depend section.

KtLoader for server operators

  • Drag and drop ktloader.jar into your server's plugins folder.

Kotlin Reflection Library
If your plugin requires the Kotlin Reflection Library, check out KtReflectLoader .

Similar projects

Plugin →