Fork me on GitHub
#cljdoc
<
2018-09-28
>
timgilbert16:09:37

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

timgilbert16:09:36

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

timgilbert16:09:03

Also I don't see hardcoded-projects-config.edn anywhere in the repository, does it live elsewhere?

timgilbert17:09:24

Oh, it's in the modules

timgilbert18:09:09

Aha, I think I fixed it by adding datomic-free as a dependency with :optional true :scope "provided"

timgilbert18:09:46

Sweet, that worked

martinklepsch20:09:33

@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.

timgilbert20:09:43

Will do, thanks!