Open danoyoung opened 6 years ago
You have a lot of properties configuring leiningen and the uberjar... does it do it if you cut this down?
This is what I have now;
when I run lein uberjar, seems to be spinning and the dlp-inspect-0.1.0-SNAPSHOT.jar just keeps growing and growing, finally kill is after it gets to +3GB. When just using lein w/o the plugin, the file uberjar is around 98MB
Compiling dlp-inspect.core SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Compiling dlp-inspect.core
(defproject dlp-inspect "0.1.0-SNAPSHOT"
:plugins [[lein-tools-deps "0.4.1"]]
:middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
:lein-tools-deps/config {:config-files [:install :user :project "./deps.edn"]
:clojure-executables ["/usr/local/bin/clojure"]}
:clean-targets ^{:protect false} [...targets...]
:profiles {:dev {:global-vars {*warn-on-reflection* false}}
:uberjar {:uberjar-name "dlp-inspect.jar"
:aot :all
:main dlp-inspect.core}}
:min-lein-version "2.8.0")
:main dlp-inspect.core)
Not sure if this is causing it but :project
and "./deps.edn"
both reference the same file. :project
is a shorthand to include the deps.edn
from your projects root directory. If you remove the "./deps.edn"
bit do you still see the problem?
This is a newbie question, trying to use the lein-tool-deps with my project, but I can't seem to get the uberjar part to work. When I run lein uberjar, I see the target directiory and the SNAPSHOT.jar file, but it just keeps growing and growing. I finally kill it after 10GB or so. When I just use lein dependencies w/o lein-tools-deps, the uberjar is created.... Any idea with what I might be doing wrong?
Here's my project.clj
My deps.edn