This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-10
Channels
- # beginners (191)
- # boot (3)
- # cljs-dev (2)
- # clojure (46)
- # clojure-austin (1)
- # clojure-spec (4)
- # clojure-uk (32)
- # clojurescript (10)
- # clojurewerkz (3)
- # cursive (14)
- # datomic (88)
- # defnpodcast (1)
- # editors (2)
- # fulcro (2)
- # hoplon (3)
- # jobs (4)
- # jobs-discuss (1)
- # luminus (5)
- # lumo (6)
- # off-topic (13)
- # random (1)
- # re-frame (50)
- # reagent (245)
- # remote-jobs (1)
- # spacemacs (3)
- # specter (16)
- # uncomplicate (4)
Alex's clojure-install work seems to offer a much simpler arrangement for project setup. A single deps.edn file can define dependencies and allow command line repl and clojure.main execution.
I presume there will be times when it is a sensible alternative to lein/boot
For the moment, cursive wouldn't support this because it doesn't know deps or source files specified in the deps.edn file.
e.g.
{:deps {org.clojure/clojure {:type :mvn :version "1.9.0-alpha20"}
my/src {:type :file :path "src"}}}
Well, I can get the deps from the file, but IIRC the src
format wasn’t actually supported (unless that’s new)
Yeah, I didn't see that in the talk but the brew-install doc mentions a way https://github.com/clojure/brew-install/blob/master/docs/guide-clj.adoc#including-your-source-directory-into-the-classpath
Thanks Colin. Love your work as always.
(Seems to be the {:type :file}
bit which is new)
Btw that guide is now at https://clojure.org/guides/clj
And that's newer than the ref above
The default user level deps.edn now includes a src/ root by default too
@alexmiller So I guess a dep of :type file
is just a directory, and could contain compiled classes or source code, right? Is there any way to distinguish the two?