Fork me on GitHub
#cljdoc
<
2021-08-23
>
jeremie10:08:25

I’ve got an issue for the keycloak-clojure library that include a dependency in the namespaces displayed on cljdoc (cli-matic for instance), see https://cljdoc.org/d/keycloak-clojure/keycloak-clojure/1.17.9/doc/readme I tried to add the :scope "provided" to exclude the dep from being analyzed but without success. Maybe that’s because the dep is included as a git url and not as maven?

cli-matic/cli-matic {:git/url ""
                             :sha "3e072260e359be51bf6646e219042c319dd9f5f8"
                             :exclusions  [expound/expound]
                             :scope "provided"}

martinklepsch12:08:16

Hey! :) Can you check if your jar contains Cli-mastic source files?

jeremie13:08:26

Yeah bingo! that’s it, the problem is then upstream in the jar building process (I use depstar).

jeremie13:08:39

Thanks for your quick response Martin 🙂

jeremie13:08:43

And congratulations for your great work on cljdoc, it’s an amazing service 😍

jeremie13:08:44

Actually depstar has an option :paths-only that do not treat :local/root and :git/url as providing source dependencies in deps.edn. Adding that option to my build alias solve the problem https://cljdoc.org/d/com.github.seancorfield/depstar/2.1.278/doc/all-the-options

martinklepsch16:08:46

Glad it helped and thanks for the kind words 🙂

lread17:08:00

Glad it all worked out but… just curious… is :scope actually supported for deps.edn… ?

lread17:08:34

I know provided is supported in a pom.xml but didn’t think it was something recognized by Clojure deps in deps.edn.