cljdoc

hlship 2025-08-06T20:17:35.480029Z

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?

✅ 1
hlship 2025-08-07T17:31:03.484379Z

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.

lread 2025-08-07T17:37:23.049359Z

Thanks for sharing, it will surely help someone in the future!

lread 2025-08-07T17:40:05.003819Z

💡 Actually, I'll link to your commit as an example in the docs...

🆒 1
hlship 2025-08-07T17:41:35.870849Z

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

lread 2025-08-07T17:46:50.517689Z

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.

hlship 2025-08-07T17:47:36.523499Z

The main thing is when calling write-pom, pass :aliases [:pom].

👍 1
lread 2025-08-07T18:00:48.512079Z

https://github.com/cljdoc/cljdoc/issues/1059

lread 2025-08-06T20:30:31.768109Z

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.

lread 2025-08-06T20:35:27.483939Z

Lemme know if you need a hand.