Fork me on GitHub
#boot
<
2017-09-11
>
alandipert03:09:41

sekao could very well be, thanks for reporting

bmaddy05:09:04

Does anyone know why my browser would be trying to connect to the wrong port for the browser repl? It keeps trying to connect to a closed port that is different than the ones printed by boot dev and boot repl -c. Code: https://github.com/bmaddy/boot-cljs-example

cjhowe07:09:24

i gave leiningen/figwheel a try. definitely sticking with boot and all the great boot-cljs tools

cjhowe07:09:41

life's too short to lein clean all the time

donyorm12:09:59

So I have a boo.build file that consists of this:

(set-env!
 :dependencies '[[halgari/fn-fx "0.3.0"]
                 [oss-world "0.1.0-SNAPSHOT"]
                 [org.fxmisc.richtext/richtextfx "0.6.10"]]
 :resource-paths #{"src" "resources"})
Which should allow me to use fn-fx classes. But when I call (require '[fn-fx.controls :as ui]) in a repl, I get java.lang.NoClassDefFoundError: Could not initialize class fn_fx.controls__init. Another project with the same dependency line has no errors. Does anyone else have this issue with [halgari/fn-fx "0.3.0"] as a dependency entry?

hmaurer12:09:56

@donyorm I just tried it locally; no issue for me

hmaurer12:09:54

@donyorm which version of clojure are you on?

donyorm12:09:13

both projects (including the one that is working) are

donyorm12:09:37

huh, works when I remove the other two dependencies

donyorm12:09:56

right, I use aot on the oss-world package, so I think some of those classes may be included in that. Maybe there are two versions of fn-fx on the classpath because of that

donyorm12:09:24

Why does the aot task compile required namespaces as well, and not just the specific namespaces? I'm trying to make a java interop class, but compiling the most of the project and its dependencies isn't helpful (and seems to be causing dependency conflicts)

donyorm15:09:20

And I suppose I should add, is it possible to get it to just compile one namespace?

dominicm17:09:05

Look at the boot uberjar example, it does this

dimovich17:09:23

if I want to use a jar as an external dependency, how can I exclude the code from the uberjar?

dimovich17:09:39

talking about bouncycastle that comes bundled with buddy-core

donaldball18:09:10

The sift task might be a way

juhoteperi18:09:29

@dimovich You can also change the scope of a dependency, e.g. test dependencies are not included in uberjar: [org.bouncycastle/bcprov-jdk15on "1.58" :scope "test"]

juhoteperi18:09:45

... or if you don't need bouncycastles at all (not sure if buddy-core works without), you can remove the transitive dependency with an exclusion: [buddy/buddy-core "1.4.0" :exclusions [org.bouncycastle/bcprov-jdk15on org.bouncycastle/bcpkix-jdk15on]]

martinklepsch19:09:16

@dimovich also take a look at the uberjars --help text, not sure if it answers your question but theres lots of stuff in there 🙂