Skip to content

Bazel rules to make JVM binaries into native binaries

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

ianoc-stripe/rules_graal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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("@rules_graal//graal:graal_bindist.bzl", "graal_bindist_repository")

graal_bindist_repository(
    name = "graal",
    version = "19.0.0",
)

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",
)

About

Bazel rules to make JVM binaries into native binaries

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.1%
  • Shell 38.7%
  • Java 1.2%