8.5.0
Changes since 8.4.0
349608c Release rules_java
v8.5.0
97a3dfb Remove top-level usage of native java_common
in java_toolchain.bzl
8bc4290 Release rules_java
v8.5.0-rc2
7170aea Release rules_java
v8.5.0-rc1
bc4a03f Add runfiles library to release archive
a156fe9 Move (and enable) remaining java rules & providers out of @_builtins
MODULE.bazel setup
bazel_dep(name = "rules_java", version = "8.5.0")
WORKSPACE setup
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_java",
urls = [
"https://github.com/bazelbuild/rules_java/releases/download/8.5.0/rules_java-8.5.0.tar.gz",
],
sha256 = "5c215757b9a6c3dd5312a3cdc4896cef3f0c5b31db31baa8da0d988685d42ae4",
)
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
rules_java_dependencies()
# note that the following line is what is minimally required from protobuf for the java rules to work
# consider using the protobuf_deps() public API from @protobuf//:protobuf_deps.bzl
load("@com_google_protobuf//bazel/private:proto_bazel_features.bzl", "proto_bazel_features") # buildifier: disable=bzl-visibility
proto_bazel_features(name = "proto_bazel_features")
# register toolchains
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
rules_java_toolchains()
Using the rules
See the source.