How to package OpenJDK 11 / OpenJFX 11 desktop application?

If you use the new core18 base you should be good to go. More info:

And an example of a snap using it: https://github.com/keepassxreboot/keepassxc/blob/develop/snapcraft.yaml