-
Notifications
You must be signed in to change notification settings - Fork 105
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
base: 1.6.x
Are you sure you want to change the base?
Conversation
@@ -99,12 +99,6 @@ | |||
<version>1.3</version> | |||
<scope>compile</scope> | |||
</dependency> | |||
<dependency> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
No updates on this? |
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.