Skip to content

Commit

Permalink
feat (dist): Native Image {WIP, *BROKEN*}
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Dec 30, 2023
1 parent 1f11247 commit 28642e5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,21 @@ bazel_dep(name = "gazelle", version = "0.34.0", repo_name = "bazel_gazelle")

go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.host(version = "1.20.4")

# https://github.com/sgammon/rules_graalvm
bazel_dep(name = "rules_graalvm", version = "0.10.3")

gvm = use_extension("@rules_graalvm//:extensions.bzl", "graalvm")

gvm.graalvm(
name = "graalvm",
version = "21.0.1", # https://www.graalvm.org/downloads/
distribution = "ce", # `oracle`, `ce`, or `community`
java_version = "21", # `17`, `20`, or `21`, as supported by the version provided
components = [
# if you need components like `js` or `wasm`, add them here
],
)
use_repo(gvm, "graalvm")
register_toolchains("@graalvm//:jvm")
register_toolchains("@graalvm//:sdk")

0 comments on commit 28642e5

Please sign in to comment.