I tried it, pretty easy.
There's a few gotchas, and mostly it doesn't support all code that can run on the JVM, so part of it is avoiding using things it can't compile.
one gotcha is making sure you don't have SSL providers compiled on the heap when building the image (so if you're using httpkit make sure to use version 2.4.0 or greater, for example)
And remember to direct link your jar