Skip to content
Bazel rules to make JVM binaries into native binaries
Branch: master
Clone or download
Latest commit 5c8264c Apr 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example commit initial OSX demo \o/ Apr 26, 2019
graal Cross support for Linux (#2) Apr 26, 2019
tasks Enable travis CI (#1) Apr 26, 2019
tools commit initial OSX demo \o/ Apr 26, 2019
.bazelrc Enable travis CI (#1) Apr 26, 2019
.gitignore commit initial OSX demo \o/ Apr 26, 2019
.travis.yml Cross support for Linux (#2) Apr 26, 2019
COPYING Add license (#3) Apr 26, 2019
LICENSE Add license (#3) Apr 26, 2019
README.md Add a readme (#4) Apr 26, 2019
WORKSPACE Cross support for Linux (#2) Apr 26, 2019

README.md

rules_graal

Turn a JVM binary into a native binary.

Usage

You'll need to first load the rules in your WORKSPACE file.

git_repository(
    name = "rules_graal",
    commit = "<<pick-a-recent-commit-sha>>",
    remote = "git://github.com/andyscott/rules_graal",
)

load("//graal:graal_bindist.bzl", "graal_bindist_repository")

graal_bindist_repository(
    name = "graal",
    version = "1.0.0-rc16",
)

Then, in a build file:

load("@rules_graal//graal:graal.bzl", "graal_binary")

java_library(
    name = "main",
    srcs = glob(["Main.java"]),
)

graal_binary(
    name = "main-native",
    deps = [":main"],
    main_class = "Main",
)
You can’t perform that action at this time.