Q: org.clj-commons/pretty API builds are failing: https://app.circleci.com/pipelines/github/cljdoc/builder/64822/workflows/cc4bbcea-555b-44c1-86b5-b234fddcadda/jobs/81196 The reason is dependency related: pretty provides an optional namespace used with nrepl, which is defined as a :test alias dependency. That's breaking things. How can I address this (using a deps.edn build)? is there a way to tell cljdoc which aliases to activate when building the classpath?
I got it sorted out. https://github.com/clj-commons/pretty/commit/956e2d324cdfff85bcb2bd86b112ae58757206cb Essentially, I have a spare alias, :pom, that I only use when building the pom, and it includes the nrepl dependency as optional.
Thanks for sharing, it will surely help someone in the future!
💡 Actually, I'll link to your commit as an example in the docs...
It's a little wrapped up in io.github.hlship/build-tools, but I think people can pick up the gist of it (or use build-tools, though I don't treat build-tools as a product, the way I do most other things).
Ah! Thanks for the clarification! I'll probably find an example that uses vanilla tools.build. Anyhoo, I'll create an issue to remind myself to improve cljdoc lib author docs here.
The main thing is when calling write-pom, pass :aliases [:pom].
Hi @hlship! The only current mechanism is to specify the dep as provided in your pom.xml https://github.com/cljdoc/cljdoc/blob/master/doc/userguide/for-library-authors.adoc#getting-dependencies-right.
What someone else did to address: https://clojurians.slack.com/archives/C02B5GHQWP4/p1700578586997709?thread_ts=1699976910.226229&cid=C02B5GHQWP4
Lemme know if you need a hand.