-
Notifications
You must be signed in to change notification settings - Fork 74
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
All dependencies get packaged into jar #90
Comments
This is a long long LONG standing bug/issue in clojure itself - it will write out ALL namespaces it compiles to the output directory ( http://dev.clojure.org/jira/browse/CLJ-322 ). I thought we'd had a work-around inplace to delete the foreign namespaces but it looks like we don't. Shouldn't be hard to add tho. I wonder how other people get around this currently. |
Are there any suggested (i.e. tried and tested) workarounds for this behaviour? |
I keep meaning to put some time aside to update the plugin to have a "delete undiscovered namespaces" option which, after compilation will simply delete the any .class files it doesn't know about ( or more, to be a good citazen, compile to a temporary folder, and then copy only the .class files related to the discovered namespaces ). As yet I've not had the time - pull requests welcome tho. |
Hopefully I can find some time to put aside whilst on Xmas holidays to look at this... |
Please note that for libraries, it is not recommended to AOT compile, anyway. |
However, there may still be the need to remove some namespace aot classes (for instance, some namespaces are so dynamic that they can't work if they're aot compiled, but they may be aot compiled transitively and must then be removed after the fact). |
I have this problem with |
The PR has been published: #98 |
All the classes from dependencies end up in the packaged jar. This is different than the default of maven, and not what you want when you intend to publish the project to a maven repository and consume it in another project.
Minimal pom.xml that reproduces the error:
The text was updated successfully, but these errors were encountered: