Load libraries

This is an example setup of how you can add the necessary libraries to the plugin.yml file in the resource folder for your plugin project. If you're not planning to create a Minecraft plugin but rather a stand-alone plugin/project, you'll need to either package the required dependencies or use the ClassLoader to load the libraries.


plugin.yml
name: "project name"
version: "project version"
main: "main.class"
author: example
api-version: 1.13
libraries:
  - com.zaxxer:HikariCP:5.0.1
  - com.h2database:h2:2.1.214
  - org.postgresql:postgresql:42.6.0
  - org.mongodb:mongodb-driver-sync:4.9.0
legacy-libraries:
  - org.slf4j:slf4j-simple:1.7.36
  - org.slf4j:slf4j-api:1.7.36
  - com.zaxxer:HikariCP:4.0.3

Last updated