This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-07
Channels
- # alda (7)
- # beginners (4)
- # boot (108)
- # cljsrn (40)
- # clojure (24)
- # clojure-berlin (1)
- # clojure-dev (20)
- # clojure-russia (21)
- # clojurescript (115)
- # clojurescript-ios (1)
- # cursive (8)
- # data-science (5)
- # datascript (3)
- # hoplon (313)
- # jobs (1)
- # ldnclj (2)
- # off-topic (19)
- # om (115)
- # portland-or (3)
- # re-frame (9)
- # yada (2)
I upgraded to boot-cljs 1.7.170-1 and am now getting a Uncaught TypeError: cb is not a function nexttick.js:185
. The error disappears if I remove boot-cljs-repl (0.2.0), though I don't see cb
in boot-cljs-repl source.
@domkm: are you :advanced compiling? altho it's hard to tell if cb is closure minified name or idiomatic clojure lol
@alandipert: Nope, using :none
is there a way to add native lib dependencies to boot tasks? i’m messing around with opencv and i have the libopencv_java300.dylib
packaged into a jar and installed in my local maven repo, but it doesn’t seem to work when i add it to the boot env :dependencies
. it works fine in lein tho.
you would need to put the system dependent things in a directory then add that to the jvm library path
i was just digging around clojars and it’s unclear to me if they support classifiers, but certainly other maven repos do
i haven’t tried publishing a jar with classifiers into clojars yet, if that’s what you mean, but i did note that the boot pom
task doesn’t have a way to specify them
also sometimes for native dependencies, but like you said that’s not terribly standardized
i believe the classifiers distinguish between multiple artifacts all deployed with the same pom
oh yeah - looks like it’s only used in the dependency spec. so weird, i always thought it was part of the source pom
you can specify it via mvn install:install-jar -Dclassifier=xyz …
when you’re publishing to the repo,
maven2/org/bytedeco/javacpp-presets/videoinput/0.200-1.1/videoinput-0.200-1.1-android-arm.jar
Is there a directory of built-in tasks? The listing at https://github.com/boot-clj/boot/wiki/Built-In-Tasks seems a little on the sparse side.
We’ll, I’m looking to create project templates that compile markdown documents into PDFs and deploys them to the maven repo.
Ok, looks like boot is possibly inserting “jar” as a classifier even if one is specified. So:
boot -d my-group:my-artifact:zip:bundle:1.0.0 uber show
Results in:
java.lang.IllegalArgumentException: Bad artifact coordinates my-group:my-artifact:jar:zip:bundle:1.0.0, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
Looking through the source to confirm.and when you have a repl try (set-env! :dependencies '[[my-group/my-artifact "1.2.3" :extension "zip"]])
Going to call it a night, but I appreciate the help. Look forward to digging into boot further.
hey, if i fork a dependency in github to fix a bug, how do i tell boot to use my fork so I can test it and until the PR is accepted upstream?
@thedavidmeister: You can install the library to your local maven repository with lein install
/ boot build-jar
/ boot pom jar install
hmm, “no such task (build-jar)"
i’ll try one of the other ones
build-jar is for Boot projects using bootlaces
lein command is obviously for lein projects
You should check what tasks project's build.boot defines
I'd like to embed the current commit in my boot-cljs builds -- can any of Boot's jgit wrapper stuff help with that?
@pandeiro: describe
or last-commit
perhaps. If you need something else it should be easy to call jgit directly
@juhoteperi: cheers, last-commit
is perfect. describe
outputs nil but i'm not sure what it's supposed to do.
@pandeiro: describe usually refers to previous tag so if you don't have any, it might not work
@juhoteperi: OK thanks, appreciate it
git describe --help
should offer comprehensive documentation 😉
There’s also +last-commit+
in bootlaces if you’ve already required that ns