'Internal' dependency

Discussion in 'Plugin Development' started by Nogtail, Mar 10, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Nogtail

    I want to use some libraries in my plugin such as Guava and Apache Commons but don't want to have an external jar file (want to package the libraries in the exported jar).

    If I want to use something that for licencing or other reasons cannot be put in the plugins jar where would I put it? If I put it in the plugins folder would Bukkit try to load it?
     
  2. Offline

    Wolfey

    Are you trying to use another plugin's api, but don't want to have it installed on the Bukkit server?
     
  3. Offline

    Nogtail

    No, I'm actually trying to make a library for a server I'm making and want to have other plugins be able to hool into it. I am planning to use Redis as one of my databases so would need to have a client (I have chosen Jedis) and I would like to have that within the jar.
     
  4. Offline

    amhokies

    You just need to package the dependencies that won't be provided at runtime inside of your plugin.
     
  5. Offline

    Nogtail

    How would you do this?
     
  6. Offline

    xTrollxDudex

    Nogtail
    Put source files with your code
     
  7. Offline

    RawCode

    in most cases you can rip code from 3rd party libs and use only code you actually need.

    i ripped GSON library, entire jar was reduced to single class that able to perform only actions i actually need.
     
Thread Status:
Not open for further replies.

Share This Page