enonic / xp-distro

Enonic XP full distribution.
GNU General Public License v3.0
3 stars 3 forks source link

Update GraalVM to 22.3 #224

Closed rymsha closed 1 year ago

rymsha commented 2 years ago

Note that GraalVM distro no longer includes JavaScript language https://www.graalvm.org/release-notes/22_2/#platform-updates

It is probably beneficial, too, to stop applying jlink for SDK builds because GraalVM distro is now way smaller.

rymsha commented 2 years ago

Without jlink size is still 2x of with jlink (~200 MB vs ~400 MB)

Unfortunately there is currently an issue with jlink https://github.com/oracle/graal/issues/4781

Currently there is no good workaround

rymsha commented 2 years ago

js language is no longer a part of distribution of GraalVM. Documentation suggests to run gu install js. This brings another challenge: gu is a "native" tool and would require to download/extract/run GraalVM for all supported platforms, instead of "just" copying a file from languages/js folder. The solution is to mimic gu tool and manually download/copy graaljs jar.