This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-28
Channels
- # 100-days-of-code (10)
- # announcements (2)
- # architecture (16)
- # beginners (51)
- # bitcoin (3)
- # calva (1)
- # cider (6)
- # cljdoc (8)
- # cljs-dev (14)
- # cljsrn (4)
- # clojure (59)
- # clojure-italy (26)
- # clojure-losangeles (1)
- # clojure-nl (13)
- # clojure-spec (54)
- # clojure-uk (81)
- # clojurebridge (4)
- # clojurescript (20)
- # core-async (16)
- # cursive (39)
- # datomic (27)
- # emacs (12)
- # events (1)
- # figwheel-main (20)
- # fulcro (35)
- # funcool (1)
- # graphql (9)
- # hyperfiddle (10)
- # jobs (1)
- # jobs-discuss (7)
- # keechma (10)
- # lumo (22)
- # nrepl (18)
- # off-topic (28)
- # onyx (3)
- # pedestal (4)
- # re-frame (8)
- # reagent (8)
- # ring (4)
- # rum (3)
- # shadow-cljs (29)
- # testing (5)
Hey, so I'm trying to get my open-source lib that builds on top of datomic to work correctly again. What I've got now is a leiningen profile where if it's included, the library uses datomic-free
as a dependency. In general I want the other code calling this library to use either datomic-free
or datomic-pro
, so I can't really specify either one as a :scope "provided"
dependency
I don't know how cljdoc works with leiningen, does it just parse pom files directly? If I could tell it "use this profile when running codox" I'd be home free
Also I don't see hardcoded-projects-config.edn
anywhere in the repository, does it live elsewhere?
Oh, it's in the modules
Aha, I think I fixed it by adding datomic-free as a dependency with :optional true :scope "provided"
Sweet, that worked
@timgilbert glad you worked it out. For the record cljdoc only ever looks at the POM and never at Leiningen or Boot specific files. Also let me know if I could put this information somewhere more easily findable. I think there’s a section in the “For library authors” docs on this but let me know if it could be improved or should be shown more prominently.
Will do, thanks!