blob: 24795da354ca0cace9689728b3e232e3e261fb79 [file] [log] [blame]
"""
Copyright 2018-present Open Networking Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
"""
Bazel build file for GRPC java binaries. This build file is injected into the GRPC source tree to allow
ONOS to build it. Published binaries of the GRPC library split the definition of the io.grpc
package across multiple jar files. This renders them unusable in an OSGI environment, so
ONOS builds its own libraries here.
"""
GRPC_COMPILE = [
"@google_errorprone_2_0_19//jar",
"@google_instrumentation_0_3_0//jar",
"@guava//jar",
"@javax_annotation_api//jar",
"@jsr305//jar",
"@junit//jar",
]
java_library(
name = "grpc-core-repkg-1.3.1-native",
srcs = glob(
[
"context/src/main/java/**/*.java",
"core/src/main/java/**/*.java",
],
),
visibility = ["//visibility:public"],
deps = GRPC_COMPILE,
)