This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-24
Channels
- # announcements (26)
- # babashka (9)
- # beginners (63)
- # calva (2)
- # chlorine-clover (22)
- # cider (2)
- # cljsrn (8)
- # clojure (36)
- # clojure-europe (36)
- # clojure-italy (5)
- # clojure-nl (76)
- # clojure-spec (9)
- # clojure-uk (8)
- # clojurescript (39)
- # conjure (24)
- # cursive (19)
- # data-science (1)
- # datascript (10)
- # datomic (1)
- # emacs (2)
- # events (5)
- # figwheel-main (9)
- # fulcro (21)
- # graalvm (1)
- # helix (5)
- # jobs (1)
- # jobs-discuss (1)
- # kaocha (1)
- # leiningen (4)
- # meander (2)
- # off-topic (22)
- # re-frame (16)
- # reitit (3)
- # rewrite-clj (75)
- # rum (1)
- # sci (51)
- # shadow-cljs (110)
- # tools-deps (16)
- # vrac (9)
- # xtdb (23)
need to build a thin jar with one namespace aot compiled. the namespace has no dependencies:
{:paths ["src" "classes"]
:deps {}
:aliases {:jar {:extra-deps {seancorfield/depstar {:mvn/version "1.0.97"}}
:main-opts ["-m" "hf.depstar.jar" "yang.jar"]}}}
$ clj -e "(compile 'yang.java)"; clj -A:jar
it does work, but it also brings these along:
0 Mon Aug 24 18:45:40 EDT 2020 clojure/core/
0 Mon Aug 24 18:45:40 EDT 2020 clojure/core/specs/
932 Mon Aug 24 18:45:39 EDT 2020 clojure/core/specs/alpha$fn__40.class
1178 Mon Aug 24 18:45:39 EDT 2020 clojure/core/specs/alpha$fn__65$fn__71.class
798 Mon Aug 24 18:45:39 EDT 2020 clojure/core/specs/alpha$fn__46.class
929 Mon Aug 24 18:45:39 EDT 2020 clojure/core/specs/alpha$fn__27.class
936 Mon Aug 24 18:45:39 EDT 2020 clojure/core/specs/alpha$fn__101.class
929 Mon Aug 24 18:45:39 EDT 2020 clojure/core/specs/alpha$fn__25.class
...
I might be missing some args in depstar
?@tolitius Clojure core uses specs for language features (as macros), so those get dragged in because of that.
You'd have to manually remove them after your compile
step right now.
Feel free to open an issue on GH with those repro steps and I'll see about adding an option to exclude stuff via regex.
seancorfield/depstar
There's already quite a few changes on develop so if I incorporate that exclusion this week, I'll cut a 1.1 release.
I'm off work Thu/Fri so I expect I'll do a round of OSS updates and releases before next Monday 🙂
https://github.com/seancorfield/depstar/issues/37 wut it’s going to take a week?? ) yea, of course this is not urgent. I can remove these manually for now. thanks again
in case someone sees this before the next monday:
clj -e "(compile 'yang.java)"; clj -A:jar; zip -d yang.jar clojure/\*;
does it@tolitius If you don't mind depending on develop, you can test that right now.
Note that it excludes files not directories, so you'd still get the (empty) clojure/core/
and clojure/core/specs/
folders if you --exclude "clojure/.*"