This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-22
Channels
- # beginners (240)
- # boot (23)
- # bristol-clojurians (3)
- # cider (101)
- # cljs-dev (52)
- # cljsrn (17)
- # clojure (212)
- # clojure-dusseldorf (2)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (91)
- # clojure-uk (33)
- # clojurescript (164)
- # community-development (23)
- # core-async (24)
- # core-logic (9)
- # cursive (18)
- # datavis (1)
- # datomic (119)
- # emacs (13)
- # events (1)
- # figwheel (2)
- # fulcro (86)
- # graphql (1)
- # immutant (5)
- # jobs-discuss (6)
- # leiningen (19)
- # lumo (46)
- # nyc (7)
- # off-topic (23)
- # parinfer (15)
- # pedestal (3)
- # planck (32)
- # re-frame (48)
- # reagent (75)
- # ring-swagger (13)
- # rum (32)
- # shadow-cljs (402)
- # spacemacs (5)
- # specter (3)
- # tools-deps (11)
- # unrepl (20)
- # vim (135)
- # yada (3)
hey guys, is there some way to define in a :cljsbuild {:builds [...]}
config a universal config that applies to each cfg in the vec? for example, I want to use the same :compiler {:npm-deps [...]}
for both prod/dev builds, and I don’t want to duplicate code in the project.clj file
@lwhorton https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md for more info
it looks like you might be able to use "Composite Profiles" to get this without typing in lein with-profie ...
each time, but I've never used this feature: https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#composite-profiles
so you could have a shared profile with universal cljsbuild options and then get it merged in, although you'll want to check lein pprint
(described at the bottom of the profiles docs) to make sure the merging works out how you want it
Hi everyone,
I have a leiningen project with some generated Java classes in directory specified in :java-source-paths. For some reason when I run lein javac
I get Caused by: java.lang.ClassNotFoundException:
exception. lein uberjar
completes successfully and compiles both classes.
Anyone knows why there is such difference?
Probably the order, I think you need lein compile first, I have a lein project with java files being ceated, and it needs
:prep-tasks ["compile" "javac"]
in the project.clj to workI've tried and it didn't help. The java files get imported in clojure - is it the same in your case as well?
No, in my case I have a clojure src in the provided src profile generating java classes from reading an edn file.
the confusing part is that lein do uberjar, midje
works, lein do compile, javac
or lein do javac, compile
fail
I've had an :uberjar
profile with :aot :all
there but now moved :aot :all
to top level and it didn't make a difference
I’ve had some good success with them in terms of sharing common chunks of profile config
@aleksander perhaps the active profiles for lein javac
are different and leaving out some dependencies you are expecting to have present on the class path