Hi everyone! Has anyone distributed a kotlin comma...
# announcements
s
Hi everyone! Has anyone distributed a kotlin command line app before? Ideally I'd like to distribute a self contained binary, I know using gradle + application plugin + shadow plugin you can distribute a single jar with a platform specific wrapper (and just depend on java being installed where it is run). Capsule seems like it can do one better and make it all one file but it doesn't seem actively maintained http://www.capsule.io/
c
Haven't used it yet, but there is graal/substratevm: https://github.com/oracle/graal/tree/master/substratevm
👍 1
n
graalvm is the way to go, with ahead of time compilation
the result is a nice executable of course, the downside is that you’ll need to create one for each platform
s
does it work reliably?
I've seen graal and I thought was cool but wasn't sure about any blockers preventing it from being production ready yet
seems potentially sweet though
c
I've heard some complex apps and libs having problems with it, but nothing that covers all situation, I guess you won't know until you try.
n
if you have reflection, you need to configure every reachable path by yourself if you don’t have it, it does it on its own
p
I stopped using capsule a while ago because it was unmaintained and gave ugly warnings with recent jdk versions. making it one file is as easy as prefixing the jar with the startup shell script (but of course a jvm is still needed). substratevm works fine for my java/kotlin clis.
👍 2