This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-28
Channels
- # announcements (5)
- # asami (34)
- # babashka (15)
- # beginners (222)
- # calva (5)
- # cider (2)
- # circleci (4)
- # cljfx (11)
- # clojure (34)
- # clojure-europe (10)
- # clojure-nl (2)
- # clojure-taiwan (2)
- # clojure-uk (5)
- # clojurescript (27)
- # conjure (8)
- # cryogen (11)
- # cursive (11)
- # datomic (7)
- # depstar (6)
- # fulcro (29)
- # graalvm (2)
- # joker (3)
- # kaocha (9)
- # nrepl (4)
- # off-topic (9)
- # pathom (1)
- # shadow-cljs (11)
- # spacemacs (4)
- # sql (1)
- # tools-deps (12)
hi, I have a question regarding deps.edn and git dependencies.
Can I build a deps.edn
dependency locally?
I have a project (clj-antlr) that has clojure code + java classes.
Can I make a clj-antlr/deps.edn
so I can use clj-antlr from another project: my-project/deps.edn
? from git ?
My goal is depend on the git version to avoid publishing binary dependenices for clj-antrl.
clj-antlr does have some java classes that need to be compiled in order for it to be used.
Can I trigger a build step in clj-antlr/deps.edn when I use it in my-project/deps.edn
?
@eugen.stan For gitlibs, this only works if you check the compiled Java into source control
For sci I have one component which needs this, so I have isolated it into its own mini-library. The rest of sci can be used as a git lib
So there is no life-cycle hooks that I can use in deps.edn
to trigger pre/post processing for dependencies ..
thanks, in my case there are 3 classes so I will make a branch for that and once I am sure all things work I'll publish them.
well, you can also push the compilation phase to the user of the library, as part of the main opts, but so far I haven't seen anyone do this
it's not unreasonable since you can then treat Java as a source-based language as well
thanks, I also have some ideas on how to provide this capability. With any luck I will push something this week 🙂 .