Fork me on GitHub
#cljfx
<
2020-10-30
>
jpmonettas19:10:12

hi everybody! I'm using org.kordamp.ikonli/ikonli-javafx for icons and they are great, but they provide two different versions of the lib for jdk8 and jdk11 so I can choose only one in my deps.edn and then it only works for one of the versions, which is inconvenient. I currently have a workaround with two aliases that the user needs to add to execute the app, like : clj -A:jdk11 -Sdeps... clj -A:jdk8 -Sdeps... Any ideas if this can be simplified somehow?

vlaaad19:10:42

there is maven stuff called "activation profiles" that allows picking different deps based on jdk version, I used that in cljfx to make it work both on java 8 and java 11

jpmonettas19:10:02

oh nice, thanks for that! will try them

jpmonettas19:10:34

also thanks for the awesome lib, I was able to migrate a project written in re-frame to cljfx pretty easy

vlaaad19:10:51

woah, that's amazing! how big is it?

jpmonettas19:10:17

I just finished migrating all that and more to cljfx, and working on a way to release it now

vlaaad19:10:22

ah, that's super cool

vlaaad19:10:39

I was thinking about trying to write a custom reveal ui for that

vlaaad19:10:12

have you considered that? 🙂

vlaaad19:10:57

it will allow further inspections of debugged values, e.g. not only pprint/layers/calls, but inspecting every value in there

jpmonettas19:10:39

yeah I have been thinking a lot about integrating both projects

jpmonettas19:10:49

so my plan is to release this version which is pure cljfx, then polish it (I'm already using it in my daily job) and then think more on that

jpmonettas19:10:21

but any ideas are welcome!

jpmonettas19:10:13

do you have plans for supporting clojurescript repls in reveal?

vlaaad19:10:31

they are already supported to some extent with remote prepls: https://vlaaad.github.io/reveal/#remote-prepl

jpmonettas23:10:22

it is not going to be announced until I use this version for some days but here it is https://github.com/jpmonettas/flow-storm-debugger the cljfx version!

jpmonettas19:10:58

Also what is the best approach to release a cljfx app so it is simple for a user and works on multiple jvm version? jar, fatjar, clojars and clj cli ?

vlaaad19:10:35

Is it a desktop app? Are you sure you need different JVM versions support? You can package the JVM with app, there is an example how to do that: https://github.com/cljfx/hn

jpmonettas19:10:27

yes it is a desktop app like reveal

jpmonettas19:10:50

will check that also, thanks!

vlaaad19:10:44

reveal is not a regular desktop app, because the target audience is clojure developer that runs it in the developed process..

vlaaad19:10:27

for Reveal it makes sense to distribute it via clojars, since "installation" is naturally done by specifying dev-time deps