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

Jar files exported from eclipse is too huge #122

Closed
junghanChoi opened this issue Oct 2, 2018 · 1 comment
Closed

Jar files exported from eclipse is too huge #122

junghanChoi opened this issue Oct 2, 2018 · 1 comment

Comments

@junghanChoi
Copy link

I just wanted to use record function in the humble-video library.
I only added humble-video in the maven pom.xml.
The exported file is too huge. It's about 144 MB.
Is there a way to build only I used classes?

@artclarke
Copy link
Owner

By default humble-video-all will include binaries for ALL operating systems (Windows 32 bit, Windows 64 bit, Linux 32 bit, Linux 64 bit, and MacOS 32 bit and 64 bit) because we can't tell which OS you're on. Humble has a lot of native (non-Java) code that needs to be compiled per operating system.

If you know you only need native bytes for a particular operating system, you can reduce your dependencies by depending on humble-video-noarch and then choosing the particular operating system versions you also need.

See the maven central locations for all the different operating system versions:
https://mvnrepository.com/artifact/io.humble

artclarke added a commit that referenced this issue Nov 19, 2018
My fix is to lean-into maven, and now dragging a dependency on
`humble-video-all` will figure out what JVM you're running under
and only bring in the native code for the platform you're on.

If you want other profiles, run maven with -P... with the name of
the profile for the OS you want.
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

No branches or pull requests

2 participants