Fork me on GitHub
#tools-deps
<
2019-09-25
>
val_waeselynck14:09:18

Is it possible to deps-consume a JAR that's versioned in a Git repo? Context: I have a little private java library that I want to consume in a deps.edn project. Putting the generated JAR under version control is weird, but this seems to be a minor inconvenience compared to setting up a private Maven distribution infrastructure.

dominicm14:09:20

If something was going to work, it would be :deps/root

val_waeselynck14:09:02

Like this?

{:git/url "[email protected]:my-company/my-private-java-lib.git"
 :sha "36d994acb92713411475eb7a9c43a44750c259de"
 :deps/root "my-private-java-lib.jar"}

val_waeselynck14:09:33

(Assuming the JAR was generated at the root of the project).

val_waeselynck05:09:26

Thanks @U064X3EF3. Do you see any other way?

Alex Miller (Clojure team)07:09:54

you could add the jar file to your :paths in the deps.edn of the git dep

4