In my project.clj I include two jar files:
:resource-paths ["resources/exterior_jars/forssj-optimization.jar" "resources/exterior_jars/umontreal-ssj-2.5.jar"]
In my main.clj I import some objects from these dependencies:
(ns myproject.main
(:import [umontreal.iro.lecuyer.probdist ChiSquareDist])
...)
So I am able to use them in main.clj:
(println "Hello")
(println (. umontreal.iro.lecuyer.probdist.ChiSquareDist cdf 5 10 3.0))
(println "Bye")
It perfectly works if I do lein run.
However, if I do lein uberjar these dependencies are not included to the standalone jar file.
I know that there exist way to use local Maven repository, but I would like to avoid this way to simplify things for anybody who wants to download the source code and compile it quickly.
Could you advise, please, is it possible to somehow force Leiningen to include these two resources in the final standalone jar?
Thank you.