Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 1 | """ |
| 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 | Bazel build file for GRPC java binaries. This build file is injected into the GRPC source tree to allow |
| 20 | ONOS to build it. Published binaries of the GRPC library split the definition of the io.grpc |
| 21 | package across multiple jar files. This renders them unusable in an OSGI environment, so |
| 22 | ONOS builds its own libraries here. |
| 23 | """ |
| 24 | |
| 25 | GRPC_COMPILE = [ |
| 26 | "@google_errorprone_2_0_19//jar", |
| 27 | "@google_instrumentation_0_3_0//jar", |
| 28 | "@guava//jar", |
| 29 | "@javax_annotation_api//jar", |
| 30 | "@jsr305//jar", |
| 31 | "@junit//jar", |
| 32 | ] |
| 33 | |
| 34 | java_library( |
| 35 | name = "grpc-core-repkg-1.3.1-native", |
| 36 | srcs = glob( |
| 37 | [ |
| 38 | "context/src/main/java/**/*.java", |
| 39 | "core/src/main/java/**/*.java", |
| 40 | ], |
| 41 | ), |
| 42 | visibility = ["//visibility:public"], |
| 43 | deps = GRPC_COMPILE, |
| 44 | ) |