Fork me on GitHub
#tools-deps
<
2022-11-08
>
markaddleman21:11:10

I”d like to add a Maven *-tests.jar to my deps.edn and have tools.deps transitively bring in dependencies. From what I can tell, the maven group and artifact IDs for the *-tests.jar are the same as the real jar. I can’t find a way to express a dependency maven scope within deps.edn. I’m sure this question has come up before but my google skills are failing me.

seancorfield21:11:31

"scopes" are not supported in t.d.a but "classifiers" are: https://clojure.org/reference/deps_and_cli#_dependencies -- I'm not sure if that helps with this case?

markaddleman21:11:04

oh jeesh…. yet another maven concept I have to learn 🙂

markaddleman21:11:09

Thanks for the pointer

markaddleman21:11:20

Now I have yet another rabbit hole 🙂

seancorfield21:11:45

You could try $tests in the artifact ID -- $sources should bring in the -sources.jar I think, based on my (limited) understanding of this...

markaddleman21:11:02

Thanks. I’m experimenting with that right now

markaddleman21:11:14

aha! That worked. Thanks a ton!

Alex Miller (Clojure team)21:11:01

Yes, that’s the correct way to do it

🙏 1