Fork me on GitHub
#graalvm
<
2021-11-23
>
igrishaev12:11:48

Can anyone help me with compiling a project using http-kit client? The output is: https://0bin.net/paste/fKpK9vEx#gO4utvxra8ofR41J-XOTXalEYaE5MP5uuagxbMlRElL

igrishaev12:11:01

Briefly, the log blames the java.security.SecureRandom class being initialized, but I've added this class to the --`initialize-at-run-time` option

igrishaev12:11:54

it works with clj-http-lite, yet I'm hoping to reduce the size of the binary with http-kip

borkdude12:11:45

@igrishaev httpkit should already have a config. which version are you using?

igrishaev12:11:35

I've tried [http-kit "2.3.0"] , [http-kit "2.5.3"] and [http-kit "2.5.0-alpha2"]

borkdude12:11:37

use 2.6.0-alpha1 and it should work out of the box

igrishaev12:11:59

I'll try, thanks! And what do you mean by config?

igrishaev13:11:21

is this config held automatically? or should I copy-paste it?

borkdude13:11:32

it is included automagically

igrishaev13:11:41

nice, I didn't know

igrishaev13:11:35

[http-kit "2.6.0-alpha1"] works! Thanks Michiel!

igrishaev13:11:41

switching to http-kit from java.net.http gave -2Mb

🎉 1
igrishaev13:11:23

A dull question: is it possible to produce a binary file for another operating system?

igrishaev13:11:49

e.g in golang, you can specify --platform=win/darwin

igrishaev13:11:44

if I need binaries for all win/mac/linux platforms, shell I build on three separate machines?

borkdude14:11:20

@igrishaev No, you need to build on three different platforms.

borkdude14:11:03

I typically use appveyor for Windows builds, and CircleCI for both Mac and Linux, although Circle supports all three and Github actions does too

borkdude14:11:34

you can take a look at babashka or clj-kondo how that is done in my setup

igrishaev17:11:11

Thank you, will take a look!