Fork me on GitHub
#tools-deps
<
2019-08-23
>
astrashe14:08:45

Is there an example anywhere that shows how to use deps.edn with a local java library? I need a local java library to deal with a protobuf

andy.fingerhut14:08:07

If the Java library is compiled to a JAR file, then you should be able to add it as a local dependency using something like this: {:deps {somejavalib {:local/root "/path/to/the/jar/file.jar"}}} If you search for ":local" on the reference doc page for deps, you should find that, too: https://clojure.org/reference/deps_and_cli

astrashe15:08:43

@andy.fingerhut Thanks! The JAR file seems like the way to go

vlaaad15:08:25

I wish future clojure releases focused more on java interop, particularly around proxies and class creation. tools-deps is a great value proposition, with the downside being that using .java files in the same project is clumsy. I really don't want to go back to lein...

Alex Miller (Clojure team)15:08:23

I think that's unlikely given that Clojure is in philosophical opposition to concrete derivation

vlaaad15:08:48

I think that's what I need actually, having troubles with proxy not having access to some protected stuff and using reflection without type hinting this..