Skip to content

Commit a22cec1

Browse files
hvadehrarules_java Copybara
authored andcommitted
Update @rules_java release notes
Adds a clarification for correctly registering protobuf deps in `WORKSPACE` mode PiperOrigin-RevId: 699105038 Change-Id: I767f62f645663c684aa944daa1b67f4fd97542f9
1 parent f81734b commit a22cec1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

distro/relnotes.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ http_archive(
3030
3131
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
3232
rules_java_dependencies()
33+
34+
# note that the following line is what is minimally required from protobuf for the java rules
35+
# consider using the protobuf_deps() public API from @com_google_protobuf//:protobuf_deps.bzl
3336
load("@com_google_protobuf//bazel/private:proto_bazel_features.bzl", "proto_bazel_features") # buildifier: disable=bzl-visibility
3437
proto_bazel_features(name = "proto_bazel_features")
38+
39+
# register toolchains
3540
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
3641
rules_java_toolchains()
3742
~~~

0 commit comments

Comments
 (0)