tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2021-06-07T15:12:36.139500Z

there is a way to pass the java classpath indo a deps.edn file?

2021-06-07T15:13:19.140600Z

I'm trying to pick the classpath that runs on a java -cp .... and trying to pass them to a deps.edn file

alexmiller 2021-06-07T15:13:42.140900Z

not into a deps.edn file, but you can at the Clojure CLI with clojure -Scp whatever

alexmiller 2021-06-07T15:14:11.141300Z

that will just override all classpath construction from the deps.edn file

2021-06-07T15:14:27.141500Z

hum...

alexmiller 2021-06-07T15:14:40.142100Z

I'm not sure I understand what you're trying to do tbh

2021-06-07T15:14:51.142500Z

I can do this to make a pom.xml instead?

2021-06-07T15:15:06.143200Z

(then it'll go out off the scope)

alexmiller 2021-06-07T15:15:06.143300Z

can you explain what "trying to pass them to a deps.edn file" means?

2021-06-07T15:15:57.144200Z

if I can use {:paths [,,,]} with the files on classpath

2021-06-07T15:16:01.144400Z

or something like this

alexmiller 2021-06-07T15:17:24.145500Z

I mean, the classpath is a string - you can split it on classpath splitter, and then copy that into the :paths

borkdude 2021-06-07T15:17:36.145900Z

@d.ian.b Do you mean, you want to add a directory with .jar files or .class files in it, to the classpath by adding them to deps.edn?

alexmiller 2021-06-07T15:17:37.146Z

I'm not sure why you want to do this

borkdude 2021-06-07T15:18:09.146300Z

I'm a bit confused too

2021-06-07T15:19:03.146600Z

yeah...

borkdude 2021-06-07T15:20:23.147100Z

You can do this using :local/root

πŸ‘ 1
2021-06-07T15:21:06.147800Z

I'm trying to have a IntelliJ classpath to run a repl with tools.deps

borkdude 2021-06-07T15:22:00.148900Z

in that case it what Alex said: you can start it like clj -Scp <intellij-classpath>

2021-06-07T15:22:09.149200Z

right now the repl is executed by using: java -cp ,,,, clojure.main -m user ,,,

2021-06-07T15:22:49.149600Z

the idea is that I don't have the IntelliJ classpath right now...

2021-06-07T15:23:13.150500Z

I want to have a way to IntelliJ detect this classpath

alexmiller 2021-06-07T15:23:15.150600Z

you can get the classpath from a deps.edn file at the terminal with clj -Spath

2021-06-07T15:26:42.151500Z

the idea right now is that I don't have a deps.edn file

2021-06-07T15:26:46.151700Z

I want to build one

borkdude 2021-06-07T15:27:24.152200Z

@d.ian.b Are you using Cursive by any chance? I think it already has deps.edn support

seancorfield 2021-06-07T17:45:32.154200Z

@alexmiller I know :path and :extra-paths can use aliases-as-data. Can :jvm-opts? We’re finding that we have a common set of JVM options we want to apply in multiple contexts (aliases) and we’d rather not have to introduce a new alias just for those, but if we could add :jvm-opts :common-jvm-opts to each alias that would be nice.

alexmiller 2021-06-07T17:45:53.154500Z

Not currently

seancorfield 2021-06-07T17:46:12.154900Z

Thanks. Saves me grubbing around in the source. Do you think it would be worth adding?

πŸ‘ 1
vlaaad 2021-06-07T18:12:51.155100Z

wen tools.build

vlaaad 2021-06-07T18:14:38.156200Z

hehe joking. I've been on clojured and wanted to say that your presentation @alexmiller was fantastic, looking forward to tools.build!

dpsutton 2021-06-07T18:15:17.156700Z

is that publicly available yet? my schedule didn't line up to catch it live unfortunately

alexmiller 2021-06-07T18:21:23.157100Z

Not available yet, hopefully soon

πŸ‘ 2
1
seancorfield 2021-06-07T18:27:21.157300Z

I attended the whole conference live from 1 am Pacific to 11 am Pacific β€” it made for a very β€œslow” Saturday, after the conference πŸ™‚

borkdude 2021-06-07T18:46:26.161Z

ClojureD was great and it was very nice of you to come over there Alex! Enjoyed the presentation.

βž• 3