Repository rule definitions, intended for use by rule users.
load("@rules_graalvm//graalvm:repositories.bzl", "graalvm_repository") graalvm_repository(version, java_version, name, distribution, toolchain, toolchain_prefix, target_compatible_with, components, setup_actions, register_all, **kwargs)
Declare a GraalVM distribution repository, and optionally a Java toolchain to match.
To register and use the GraalVM distribution as a toolchain, follow the Toolchains guide in the docs
(docs/toolchain.md
).
If distribution
is set to oracle
, an Oracle GraalVM installation is downloaded. This variant of
GraalVM may be subject to different license obligations; please consult Oracle’s docs for more info.
Oracle GraalVM distributions are downloaded directly from Oracle, which provides a latest
download
endpoint. Set version
to latest
(the default value) to download the latest available version of
GraalVM matching the provided java_version
.
When installing the latest
version of GraalVM, it is probably ideal to provide your own sha256
.
In this case, the rules_graalvm
package does not provide an SHA256 hash otherwise.
PARAMETERS