Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimized dependencies for JAR file size (8.6MB -> 7.8MB) #142

Open
wants to merge 7 commits into
base: 1.6.x
Choose a base branch
from

Conversation

mind-overflow
Copy link

@mind-overflow mind-overflow commented Jun 25, 2020

Removed some unused packages and dependencies to optimize file size.

If net.dv8tion's JDA was to be removed, the JAR file would go from 7.8MB to a relatively small 2.7MB.
The Discord API is taking up a real lot of space. I'm looking for a smaller alternative, however I have limited time and I'm not sure I'll be able to find and implement it.

@@ -99,12 +99,6 @@
<version>1.3</version>
<scope>compile</scope>
</dependency>
<dependency>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use the brigadier all throughout the command management system

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried compiling the plugin before pushing this request. It compiles without any problem. It seems like brigadier is already included by some other dependency.
In fact, by running mvn dependency:tree you can clearly see that

[INFO] +- me.lucko:commodore:jar:1.3:compile
[INFO] |  \- com.mojang:brigadier:jar:1.0.14:compile

The me.lucko.commodore package already includes brigadier.

@mind-overflow
Copy link
Author

No updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants