This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-12
Channels
- # aleph (11)
- # aws-lambda (1)
- # beginners (158)
- # boot (19)
- # cider (14)
- # clara (23)
- # cljs-dev (3)
- # clojars (4)
- # clojure (133)
- # clojure-dev (57)
- # clojure-dusseldorf (1)
- # clojure-finland (2)
- # clojure-gamedev (31)
- # clojure-greece (15)
- # clojure-ireland (1)
- # clojure-italy (3)
- # clojure-russia (8)
- # clojure-spec (149)
- # clojure-uk (51)
- # clojurescript (88)
- # community-development (1)
- # component (5)
- # cursive (17)
- # datomic (3)
- # emacs (6)
- # fulcro (142)
- # graphql (1)
- # juxt (15)
- # lein-figwheel (1)
- # luminus (3)
- # lumo (6)
- # off-topic (11)
- # om (8)
- # onyx (5)
- # portkey (6)
- # proton (2)
- # protorepl (3)
- # quil (6)
- # re-frame (14)
- # reagent (9)
- # shadow-cljs (226)
- # specter (11)
- # testing (96)
- # uncomplicate (5)
- # unrepl (8)
- # vim (11)
@juhoteperi @donaldball @martinklepsch Thanks for the suggestions. Managed to use :exclusions
. Also (uber :exclude [#"bouncycastle"])
seems to work
but I have to also exclude the transitive dependencies of buddy-core in order for that to work
well there is a javac boot task, I guess it depends on how complicated your java sources are
@juhoteperi that scopes it for the pom.xml, but the aot code in clojure isn't aware of scopes.
@dominicm Yeah, well, that's why I only aot compile single main namespace, nothing else
@juhoteperi there was an idea to just have the aot class have an option for bringin gin a plain ol' java shim.
so my "single main namespace" seems to require (transitively) most of my other namespaces. Is it possible to make it only compile one or two namespaces, and leave the rest as clojure. I'm getting issues with import errors because of multiple versions of library existing on the classpath due to aot.
Quite common solution is to require nothing from main ns directly, and instead use require and resolve on runtime: https://github.com/boot-clj/boot/wiki/Circumnavigating-Watch-and-AOT-Compilation-Limitations
So how can I cause boot to pass arguments passed to a task onto the program like is done if I do something like lein run -p 3000
. How do I define the arguments to (deftask run)
in boot? Basically the equivalent of [& args]
for tasks
@donyorm this might be helpful: https://github.com/boot-clj/boot/wiki/Task-Options-DSL#positional-parameters
@donyorm had the same question, had to settle for positional arguments