leiningen

Jérémie Pelletier 2024-07-23T00:15:47.026229Z

I have an issue where lein with-profile uberjar compile works but lein uberjar fails to find the main clj file. lein with-profile uberjar classpath has the right paths in it. For reference, it's pulling the dependencies and source-paths of for the main clj file from a :server profile, which is set to uberjar like :uberjar [:user :system :server :server-prod]

Jérémie Pelletier 2024-07-23T00:17:39.686069Z

lein with-profile uberjar jar gives the same result as uberjar: the core.clj file is not found on the classpath, but the file is found in classpath and compile tasks just fine with the same profile

Jérémie Pelletier 2024-07-23T00:34:11.077339Z

moving the source-paths, dependencies and managed-dependencies of the server profile to the toplevel of defproject makes uberjar/jar tasks work, but it feels like a bug

hifumi123 2024-07-23T19:42:08.371839Z

I would use lein-pprint to check the computed source path when using the +uberjar profile

Jérémie Pelletier 2024-07-24T01:14:01.726349Z

I did, the source path composes from the right profiles correctly, its only during the uberjar and jar tasks that they seem to be missing, even if forced to the uberjar profile