This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-05
Channels
- # announcements (10)
- # beginners (59)
- # calva (172)
- # cider (13)
- # clj-kondo (1)
- # cljdoc (10)
- # cljs-dev (4)
- # cljsrn (65)
- # clojure (144)
- # clojure-europe (2)
- # clojure-italy (26)
- # clojure-losangeles (1)
- # clojure-nl (14)
- # clojure-spec (26)
- # clojure-uk (91)
- # clojurescript (75)
- # core-async (53)
- # cursive (11)
- # datomic (16)
- # fulcro (42)
- # graalvm (29)
- # graphql (9)
- # kaocha (3)
- # leiningen (22)
- # off-topic (26)
- # qa (1)
- # re-frame (3)
- # reagent (7)
- # reitit (10)
- # rewrite-clj (56)
- # robots (1)
- # shadow-cljs (107)
- # spacemacs (10)
- # specter (5)
- # sql (15)
- # tools-deps (39)
- # vim (11)
hello. i have a question in regards to profiles merging. my example:
:profiles {:joint {:dependencies [[camel-snake-kebab "0.4.0"]
[cider-ci/open-session "2.0.0-beta.1"]
[clj-http "3.8.0"]
[clojure-humanize "0.2.2"]
[clj-pid "0.1.2"]
[com.github.mfornos/humanize-slim "1.2.2"]
[com.walmartlabs/lacinia "0.31.0"]
[environ "1.1.0"]
[hickory "0.7.1"]
[inflections "0.13.0"]
[org.clojure/clojure "1.9.0"]
[org.clojure/tools.cli "0.3.5"]
[org.clojure/tools.nrepl "0.2.13"]
[org.clojure/clojure-contrib "1.2.0"]
[timothypratley/patchin "0.3.5"]
[threatgrid/ring-graphql-ui "0.1.1"]
[uritemplate-clj "1.1.1"]]},
:uberjar [:joint :uberjar-extra],
:uberjar-extra {:source-paths ["src/prod"],
:resource-paths ["resources/prod"],
:aot [#"leihs\..*"],
:uberjar-name "leihs-procure.jar"}}
now lein uberjar
is complaining about missing classes of the dependencies of :joint
profile. why is it? note: i don’t want to put the :joint
dependencies as the projects top-level :dependencies
as those are already used for shared dependencies between different projects and i need to have the possibility to override them if necessary.@matuskmit1 hmm what do you see with lein with-profile uberjar pprint
and/or lein with-profile uberjar classpath
Also, a quick thing to try would be to change the profile :uberjar
definition to instead be this :uberjar [:joint :uberjar-extra {}]
I’d be curious if that affected this
Lastly, are :joint
and/or :uberjar-extra
used in any other composite profiles - such as :dev
?
yes, :joint
is. good question, because when i cleared everything from :profiles
upto :joint, :uberjar, :uberjar-extra
then it worked…
@matuskmit1 I think I know why
@matuskmit1 heres’ the issue related to this topic: https://github.com/technomancy/leiningen/issues/2393#issuecomment-499122448
it’s funny because I logged this long ago, and recently had glts ask me about what problem I faced and I forgot. I remembered once I see you bring this up today. Win
@U0LK1552A hehe 🤝