I'm unable to post a new topic to the leinigen group so I thought I'd try my luck here.
I'd like to exclude certain dependencies from my uberjar, by using the :provided profile, but the jars are always included.
I've added the following to my project.clj, but the edu.stanford.nlp jars end up in the uberjar no matter what. I've also tried with a simple project just to exclude a few jars and that doesn't seem to work either. Am I missing something simple? Or is there a better way to exclude large dependencies from uberjar if the deployment environment will already have them on the classpath? Thanks.
:profiles {:uberjar {:aot :all}
:provided {:dependencies
[[edu.stanford.nlp/stanford-corenlp "3.4.1"]
[edu.stanford.nlp/stanford-corenlp "3.4.1"
:classifier "models"]]}
:dev {:resource-paths ["test-data"]}}(defproject myproj "0.1.0"
:dependencies [[org.clojure/clojure "1.6.0"]] ;; notice standford-corenlp is *not* mentioned!!
:uberjar {:aot :all}
:profiles {:provided {:dependencies
[[edu.stanford.nlp/stanford-corenlp "3.4.1"]
[edu.stanford.nlp/stanford-corenlp "3.4.1"
:classifier "models"]]}})