From a9244ca0dfea15b024df5a81b948d09907fa3970 Mon Sep 17 00:00:00 2001 From: Steven Parkes Date: Thu, 10 Mar 2016 17:50:25 -0800 Subject: [PATCH] add java/util support based on java/util/pom.xml --- BUILD | 13 +++++++++++++ WORKSPACE | 20 ++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/BUILD b/BUILD index 32fd669faa..cc699c8b1c 100644 --- a/BUILD +++ b/BUILD @@ -472,6 +472,19 @@ java_library( visibility = ["//visibility:public"], ) +java_library( + name = "protobuf_java_util", + srcs = glob([ + "java/util/src/main/java/com/google/protobuf/util/*.java", + ]), + deps = [ + "protobuf_java", + "//external:gson", + "//external:guava", + ], + visibility = ["//visibility:public"], +) + ################################################################################ # Python support ################################################################################ diff --git a/WORKSPACE b/WORKSPACE index 1e8e0a7f51..065dc81984 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -31,3 +31,23 @@ bind( name = "six", actual = "@six_archive//:six", ) + +maven_jar( + name = "guava_maven", + artifact = "com.google.guava:guava:18.0", +) + +bind( + name = "guava", + actual = "@guava_maven//jar", +) + +maven_jar( + name = "gson_maven", + artifact = "com.google.code.gson:gson:2.3", +) + +bind( + name = "gson", + actual = "@gson_maven//jar", +)