1.15.2 Compressed JAR files

Discussion in 'Spigot Plugin Development' started by robeng, Mar 19, 2020.

  1. Hi,

    I have started to program some smaller plugins. One thinks I noted was the JAR files are extremely large, compared to JAR files from other plugins typically found here on SpigotMC. For instance, I have a plugin with two classes, together with less than 100 rows, and the JAR file size is 30MB.

    Are there ways to compress or minify so that the JAR files do not become so big.

    Thanks in advance!
     
  2. Not include the spigot api could be a start
     
    #2 robertlit, Mar 19, 2020
    Last edited: Mar 19, 2020
    • Winner Winner x 1
  3. Would that mean not building the JAR with the spigot library?
     
  4. Yes. How are you building the jar?
     
  5. I checked my build configuration inside of IntelliJ and yes, it was building with the API. Removed it and got down to 5kb. Thanks for the assistance!
     
    • Friendly Friendly x 1