This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-19
Channels
- # announcements (15)
- # babashka (4)
- # beginners (55)
- # calva (92)
- # cider (70)
- # circleci (1)
- # clj-kondo (136)
- # cljdoc (2)
- # clojars (11)
- # clojure (48)
- # clojure-australia (1)
- # clojure-europe (30)
- # clojure-nl (3)
- # clojure-sweden (2)
- # clojure-uk (7)
- # clojurescript (40)
- # conjure (5)
- # core-async (11)
- # cursive (55)
- # data-science (1)
- # datomic (10)
- # degree9 (2)
- # development-containers (15)
- # events (1)
- # fulcro (14)
- # gratitude (13)
- # helix (5)
- # lsp (35)
- # malli (10)
- # meander (18)
- # off-topic (24)
- # pathom (13)
- # polylith (12)
- # practicalli (6)
- # re-frame (13)
- # reagent (33)
- # reitit (4)
- # remote-jobs (1)
- # shadow-cljs (13)
- # spacemacs (31)
- # specter (1)
- # stepwise (2)
- # tools-deps (19)
- # vim (1)
- # xtdb (7)
I finally have the perfect use case for meander! However, there's a problem with the jar you're releasing. It contains a copy of Clojure AOT'd!
❯ jar tf ~/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar | grep '^clojure/' | head
clojure/
clojure/core$generate_proxy$gen_method__7051.class
clojure/reflect$declared_fields.class
clojure/string$split_lines.class
clojure/pprint$init_cap_writer$fn__10632.class
clojure/core$fn__7417.class
clojure/core$bean$fn__7221.class
clojure/core$vector_QMARK___5414.class
clojure/core$destructure$pb__6246$pmap__6249$fn__6252$fn__6256.class
clojure/core$mk_am.class
This makes the jar bigger than Clojure itself!
❯ du -hs ~/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar ~/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar
4.6M /home/overfl0w/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar
3.8M /home/overfl0w/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar
@dominicm Hmm… OK. I packaged this one up manually with uberdeps and I’m betting I made a mistake.
In this case we don't want a uberjar. Depstar might be an easy way to do this https://cljdoc.org/d/com.github.seancorfield/depstar/2.1.278/doc/getting-started/building-a-library-jar
newest version of clojure cli can help as well https://github.com/DotFox/meander/commit/21112eb3ce689524f005d0ce9a3d065ba3c43752 here is my attempt (successful 🙂) to make a package and install into local repository
clj -T:build all
result is 94K
I tried to figure out the release process and got a bit lost with the whole project.clj generation stuff tbh 😅
That stuff needs to get dumped in the toilet. I’m don’t want to use lein deploy clojars
anymore because reasons. 🙂
I did stumble across https://github.com/applied-science/deps-library which might be of interest