Similar to what Guillermo suggested changing in your project: profiles to include something like:
:provided {:dependencies [[org.bouncycastle/bcprov-jdk15on "1.50"] [org.bouncycastle/bcpg-jdk15on "1.50"]]}
(Specific versions may vary.)
The problem is that if you use the Clojure shell library (e.g. clj-pgp or thi.ng/crypto ), this forces jar to be included in uberjar, disrupting the process.
My solution was to fork the library and put it in clojars after changing its project.clj to use the provided dependencies.
More details here: http://side-effects-bang.blogspot.com/2015/02/deploying-uberjars-that-use-bouncy.html
source share