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]
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
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
I would use lein-pprint to check the computed source path when using the +uberjar profile
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