blob: 826d304c6dccbee027abc061b6fd8b87fa0ac516 [file] [log] [blame]
Ray Milkey30773582018-07-26 15:52:23 -07001"""
2 Copyright 2018-present Open Networking Foundation
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15"""
16
17
18"""
19 Workspace to build GRPC java binaries. please see the injected bazel build file
20 grpc_BUILD for additional information.
21"""
22
23def generate_grpc():
24 native.new_http_archive(
25 name = "grpc_src_zip_131",
26 urls = ["https://github.com/grpc/grpc-java/archive/v1.3.1.zip"],
27 sha256 = "c529b4c2d80a6df8ddc0aa25d7599e46ffcd155cb67122513f8fb536cd96eca4",
28 build_file = "//tools/build/bazel:grpc_BUILD",
29 strip_prefix = "grpc-java-1.3.1",
30 )
31
32def generated_maven_jars():
33 native.maven_jar(
34 name = "guava",
35 artifact = "com.google.guava:guava:22.0",
36 sha1 = "3564ef3803de51fb0530a8377ec6100b33b0d073",
37 )
38
39 native.maven_jar(
40 name = "google_instrumentation_0_3_0",
41 artifact = "com.google.instrumentation:instrumentation-api:0.3.0",
42 sha1 = "a2e145e7a7567c6372738f5c5a6f3ba6407ac354",
43 )
44
45 native.maven_jar(
46 name = "javax_annotation_api",
47 artifact = "javax.annotation:javax.annotation-api:1.2",
48 sha1 = "479c1e06db31c432330183f5cae684163f186146",
49 )
50
51 native.maven_jar(
52 name = "jsr305",
53 artifact = "com.google.code.findbugs:jsr305:3.0.1",
54 sha1 = "f7be08ec23c21485b9b5a1cf1654c2ec8c58168d",
55 )
56
57 native.java_library(
58 name = "google_errorprone_2_0_19",
59 visibility = ["//visibility:public"],
60 exports = ["@google_errorprone_2_0_19//jar"],
61 )
62
63def generated_java_libraries():
64 native.java_library(
65 name = "guava",
66 visibility = ["//visibility:public"],
67 exports = ["@guava//jar"],
68 )
69
70 native.java_library(
71 name = "google_instrumentation_0_3_0",
72 visibility = ["//visibility:public"],
73 exports = ["@google_instrumentation_0_3_0//jar"],
74 )
75
76 native.java_library(
77 name = "javax_annotation_api",
78 visibility = ["//visibility:public"],
79 exports = ["@javax_annotation_api//jar"],
80 )
81
82 native.java_library(
83 name = "jsr305",
84 visibility = ["//visibility:public"],
85 exports = ["@jsr305//jar"],
86 )
87
88 native.java_library(
89 name = "google_errorprone_2_0_19",
90 visibility = ["//visibility:public"],
91 exports = ["@google_errorprone_2_0_19//jar"],
92 )