This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-04
Channels
- # admin-announcements (9)
- # beginners (40)
- # boot (61)
- # cider (6)
- # cljsrn (5)
- # clojure (65)
- # clojure-gamedev (6)
- # clojure-greece (8)
- # clojure-ireland (1)
- # clojure-portugal (5)
- # clojure-russia (46)
- # clojure-uk (38)
- # clojurescript (177)
- # core-async (9)
- # cursive (17)
- # datomic (6)
- # dirac (8)
- # emacs (5)
- # error-message-catalog (8)
- # hoplon (248)
- # ldnclj (11)
- # ldnproclodo (1)
- # lein-figwheel (36)
- # leiningen (12)
- # mount (2)
- # off-topic (3)
- # om (26)
- # onyx (12)
- # perun (2)
- # planck (26)
- # re-frame (62)
- # reagent (55)
- # remote-jobs (2)
- # rethinkdb (1)
- # ring-swagger (14)
- # spacemacs (47)
- # untangled (69)
Hi, I need to include a third-party JAR in my BOOT Project without having it in Maven.
@dimiter: maybe the easiest thing to do is install it to your local maven repo using the maven install task
another option is to write a task that explodes the jar and adds its contents as resources to the fileset
most of the code to do that is already in boot, you'd just need to wire it up. you can look at the uber
builtin
there are also boot functions to install jars to the local maven repo, so that part you could perhaps drive from your build.boot instead of calling maven. if you go the local repo route
Ok. I did install it to my local repo. When I do an Uberjar, will all the dependencies be packaged with it?
mvn install:install-file -Dfile=/opt/mylibs/102opswclient.jar -DgroupId=com.opsware -DartifactId=opswclient -Dversion=10.2.0 -Dpackaging=jar -DgeneratePom=true
so now in your build.boot do (set-env! :dependencies '[[com.opsware/opswclient "10.2.0"]])
or similar
Iām making a boot library that makes changes to html resource files. Whenever I dump the result with the target
task, it always works correctly, but serving with boot-http
from the classpath seems to be non-deterministic with whether it shows me the original html file or the updated version from my task. Has anyone else experienced this with boot-http? @pandeiro
my pipeline is
(deftask dev []
(comp
(watch)
(serve :port 5000 :reload true)
(inspect-classpath)
(asset-fingerprint)
(inspect-classpath)
(target)))
where the inspect-classpath prints the file contents in the classpath before and after the asset-fingerprint
task. It is always prints the updated version correctly, but sometimes boot-http
still serves the old file.
is there any way to influence the order of dependencies in cljs_deps.js? having some issues with https://github.com/madvas/cljs-react-material-ui, load order works in one project but not in another, almost the same build.boot setup
@edannenberg: this sounds like it might be more related to ClojureScript than Boot?
@adamfrey: are you making sure you're waiting long enough before reloading?
you mean in my browser/curl? Yeah if it serves the old file than it keeps serving the old file util I restart the pipeline
@adamfrey: oh, I see. Haven't had similar experiences fwiw
@martinklepsch: hmm probably, will try my luck there
so boot-http
runs the server in a pod, with an isolated classpath. If I commit!
changes to a classpath file from a different task, should boot-http
see the updated changes in the classpath on the next request?
my stale classpath resources problem is completely non-deterministic without any code changes, so that leads me to suspect a race condition. Are pods are run in different threads by default?
Whats the right way to ensure that a jar command is able to find the right artifact name/version after (uber)
?
Excluding pom.xml files from being imported? Manually specifying the filename?
@martinklepsch: i think manually specify filename
dependency jars may assume that they will be able to find their own pom.xml on the classpath
Hello everyone I am struggling to use boot to build a hybrid java clojure codebase. Is there any easy boot equivalent to leiningens :java-source-paths ["src/java"] option?
How can I add a local repository for a single project. My idea reading the manual was to add this to build.boot
:repositories {"central" "
where repo is a directory in the root directory of a boot project.
ahh god bless google search
:repositories {"clojars" ""
"central" " "
"local" (str (.toURI (java.io.File. "repo")))}
@sarudak: there's the javac
builtin task
It doesn't seem to do anything. I have :src-paths #{"src/clj" "src/java"} and then I do (deftask uber-build [] (comp (javac) (aot) (uber) (jar))) but none of the java ends up in the jar
@sarudak: https://github.com/alandipert/boot-java-task-example is an example that might be helpful
in your defense, it was src-paths in early versions of boot š
if you want to see some defaults you can go to a directory without a build.boot file and do boot show -e
maybe also tack on -P
to disable ~/.boot/profile.boot
guys, hello
i have a boot issue here. often when i am in the middle of doing a change, it crashes
like that:
Exception in thread "Thread-17" java.io.FileNotFoundException: src/cljs/ui_sandbox/app.cljs___jb_tmp___ (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at $fn__9235.invoke(io.clj:344)
at clojure.lang.MultiFn.invoke(MultiFn.java:238)
at $copy.doInvoke(io.clj:396)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.core$partial$fn__4527.invoke(core.clj:2493)
at boot.file$copy_with_lastmod.invoke(file.clj:144)
at boot.file$sync_BANG_.doInvoke(file.clj:190)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:634)
at boot.core$sync_user_dirs_BANG_$fn__457.invoke(core.clj:115)
at boot.core$sync_user_dirs_BANG_.invoke(core.clj:113)
at boot.core$set_user_dirs_BANG_$on_change__478.invoke(core.clj:152)
at boot.core$watch_dirs$fn__667.invoke(core.clj:524)
at clojure.lang.AFn.run(AFn.java:22)
at java.lang.Thread.run(Thread.java:745)
@michael.heuberger: is your editor creating those files?
@micha: using intellij here - not sure if it causes it
great - when it is coming out?