How to build jar for Android library project in Intellij Idea without unnecessary content
-
08-07-2021 - |
Question
When I build jar for Android library project in Intellij Idea it puts inside all dependent jar that I use in the project and classes.jar
but as I think all that stuff is unnecessary and jar can contain only compiled classes e.g.
Is that possible to compile clean jar in Idea? or should I use ant or something else?
Solution
You cloud compile the project using intelliJ, then locate the class files, the go to their root folder, then its parent folder and use jar cvf foo.jar -R <root>/
in a shell.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow