Fork me on GitHub
#deps-new
<
2022-08-31
>
migalmoreno21:08:23

Hi, I'm trying to install a Java library (undisclosed for privacy reasons) that uses Grade instead of pom.xml or deps.edn. Due to this, I specify its git coordinate along with {:deps/manifest :deps} and fetch all of its transitive dependencies in my project's deps.edn. While I can see the library has been downloaded at ~/.gitlibs/libs, I can't seem to be able to import its packages from a Clojure REPL, while I can import its dependencies without any issues. Do you know if this is even allowed?

seancorfield22:08:29

@U03JT1RV0R0 I'm not sure what this has to do with the deps-new project -- can you elaborate?

seancorfield22:08:47

A Java project needs to be compiled, and the Clojure project's classpath needs to include where those Java .class files are. Also, if the project doesn't have pom.xml, you're not going to get any of its transitive dependencies -- because there's nothing for Clojure's CLI (and tools.deps.alpha) to find.

migalmoreno20:09:55

Thanks for the explanation! And yeah, apologies, I totally missed what channel I was posting this question to.

1