Skip to content

v0.11.1

Compare
Choose a tag to compare
@sgammon sgammon released this 24 Jan 17:54
· 72 commits to main since this release
v0.11.1
55e93ca

Summary

This release applies inert fixes and updates to build tooling, as well as upgrades to GraalVM. The newest version is now supported (21.0.2), released last week (mid-January 2024).

0.11.1 includes @meteorcloudy's first contribution to the project. Thank you!

Installation

Via WORKSPACE.bazel:

http_archive(
    name = "rules_graalvm",
    sha256 = "e4fa275b062dcd03b1ecb02bb25f01ead512023006a874a5e0c2cb78ba6d8e73",
    strip_prefix = "rules_graalvm-0.11.1",
    urls = [
        "https://github.com/sgammon/rules_graalvm/releases/download/v0.11.0/rules_graalvm-0.11.1.zip",
    ],
)
load("@rules_graalvm//graalvm:repositories.bzl", "graalvm_repository")
graalvm_repository(
    name = "graalvm",
    distribution = "ce",  # `oracle`, `ce`, or `community`
    java_version = "21",  # `17`, `20`, or `21`, as supported by the version provided
    version = "21.0.1",  # earlier version format like `22.x` also supported
)
Artifact SHA256
rules_graalvm-0.11.1.zip e4fa275b062dcd03b1ecb02bb25f01ead512023006a874a5e0c2cb78ba6d8e73
rules_graalvm-0.11.1.tgz 0128b4a8664974689fadae56b517de627c5f42141925111baf05dc91c37af1c0

Or, via MODULE.bazel:

bazel_dep(name = "rules_graalvm", version = "0.11.0")
gvm = use_extension("@rules_graalvm//:extensions.bzl", "graalvm")

gvm.graalvm(
    name = "graalvm",
    version = "21.0.1",  # earlier version format like `22.x` also supported
    distribution = "ce",  # `oracle`, `ce`, or `community`
    java_version = "21",  # `17`, `20`, or `21`, as supported by the version provided
)
use_repo(gvm, "graalvm")
use_repo(gvm, "graalvm_toolchains")
register_toolchains("@graalvm_toolchains//:all")
Artifact Integrity value
rules_graalvm-0.11.1.zip sha256-5PonWwYtzQOx7LArsl8B6tUSAjAGqHSl4MLLeLptjnM=
rules_graalvm-0.11.1.tgz sha256-ASi0qGZJdGifra5WtRfeYnxfQhQZJREbrwXckcN68cA=

Using GraalVM as your Java toolchain

Via WORKSPACE.bazel:

# graalvm_repository(...)
load("@rules_graalvm//graalvm:workspace.bzl", "register_graalvm_toolchains")

register_graalvm_toolchains()

Via Bzlmod:

register_toolchains("@graalvm_toolchains//:all")

To use the toolchain, add this to your .bazelrc:

build --extra_toolchains=@graalvm_toolchains//:toolchain
build --java_runtime_version=graalvm_21

Note

If you name your repository example and set the Java version to 21, your java_runtime_version would be example_21, and your toolchain repo would be @example_toolchains.


Release Notes

This is a point release which only applies fixes, updates, and the latest versions of GraalVM.

What's Changed

New Contributors

Full Changelog: v0.11.0...v0.11.1