aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Han-Wen Nienhuys <hanwen@google.com>2015-06-01 15:57:50 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-06-02 14:39:13 +0000
commite01aa680eb13dc3c796eeac2393bd2f4ec37fdb7 (patch)
treef05e95ef33c236ddb175edfb2e3b35a1d873880c /examples
parent5fe79331f9160ae8b37f907ddbaa5f080dfc8185 (diff)
Simplify genproto.bzl.
Generate a srcjar artifact, and use native.java_library to emit the actual jar file. Post-review modifications: - Formatted genproto.bzl - Use //external:jar instead of relying on PATH - Make proto library a java_import instead of a filegroup in test setup. -- Change-Id: I005f801f09439bbca43e483ad4a47da4588fea94 Reviewed-on: https://bazel-review.googlesource.com/1362 MOS_MIGRATED_REVID=94914935
Diffstat (limited to 'examples')
-rw-r--r--examples/proto/BUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/proto/BUILD b/examples/proto/BUILD
index cae538d877..7ce5659ea6 100644
--- a/examples/proto/BUILD
+++ b/examples/proto/BUILD
@@ -1,8 +1,8 @@
package(default_visibility = ["//visibility:public"])
-load("/tools/build_rules/genproto", "genproto")
+load("/tools/build_rules/genproto", "proto_java_library")
-genproto(
+proto_java_library(
name = "test_proto",
src = "test.proto",
)