How can I add an external library to a project in IntelliJ IDEA so that when I build an artifact it still has access to the classes in the library?
I have created a
You have 2 options here:
Manifest.MF
and copy them near the application main jarI've prepared a sample project that demonstrates both approaches: HelloWithDependencies.zip.
The artifacts are produced into out\single
and out\linked
directories.
Relevant configurations: