This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-12
Channels
- # aleph (1)
- # announcements (13)
- # asami (4)
- # babashka (47)
- # beginners (22)
- # calva (11)
- # circleci (1)
- # clj-kondo (14)
- # clojure (43)
- # clojure-europe (43)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-uk (6)
- # clojurescript (13)
- # core-async (5)
- # cursive (8)
- # datomic (20)
- # events (3)
- # fulcro (12)
- # graalvm (1)
- # graphql (4)
- # gratitude (3)
- # java (2)
- # juxt (2)
- # leiningen (12)
- # off-topic (30)
- # pathom (33)
- # pedestal (5)
- # podcasts-discuss (1)
- # polylith (14)
- # rdf (2)
- # re-frame (12)
- # reagent (3)
- # releases (2)
- # shadow-cljs (24)
- # spacemacs (13)
- # sql (2)
- # tools-build (16)
For anyone interested. My workaround for the too long classpath: I unpacked (unzipped or copied) entries from the classpath to target/classes
and then use that as the sole classpath for the next step.
It was pretty easy to work around, but I think the @classpath-file.txt
approach is worth exploring.
+1 I'm using the @classpath-file.txt on another project -- not for long args but for other reasons
@borkdude I'll look at that today
there's an issue in tools.deps for that but not for tools.build
@alexmiller if you want a repro, I can make you one
note that it is a Windows only problem (with regards to the length of the classpath)
https://github.com/clojure/tools.build v0.6.4 ea76dff is now available • java-command - add control over using classpath file with :use-cp-file (default=:auto) • compile-clj - can now accept java-command passthrough args :java-cmd, :java-opts, :use-cp-file
^^ will automatically use classpath file for long compile-clj command lines on Windows
https://github.com/clojure/tools.build v0.6.5 a0c3ff6 is now available • git-process - NEW task to run an arbitrary git process and return the output • git-rev-count - updated to use git-process, added :git-command attribute
there have been several requests for various git tasks, rather than add these as random 1-offs, you can now use the generic git-process task, some examples in the doc https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-git-process