Include external lib jars in an artifact jar?

I have an artifact that uses an external library. Is it possible to include that library within my artifact jar from InteliJ itself?

---
Original message URL: http://devnet.jetbrains.net/message/5521009#5521009

0
2 comments
Avatar
Permanently deleted user

Yes. When you create a JAR artifact (in the "Artifact" pane of the Project Structure (Ctrl+Alt+Shift+S) dialog), there are two options for what to do with any dependencies. The one option is "extract to the target jar". If you select this option, all dependencies for the module defined in the "Module" setting at the top will be extracted and included in the JAR.

screenshot-1.png
After making such a selection, you will see the extracted dependency shown in the Artifacts Output Layout Tab:

screenshot-2.png

0
Avatar
Permanently deleted user

Thanks, that worked great!

0

Please sign in to leave a comment.