aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-05-27 09:00:30 -0700
committerDavid Dietrich <drdietri@google.com>2020-11-02 12:09:59 +0000
commita89b95edd212f82db967343aa8e203916100b604 (patch)
tree69f2dab4caab6f780b074dc0c13d7f5b1417edab
parent610a17c2139830070c0dc56540d35aeb64222ec7 (diff)
downloadopencensus-java-a89b95edd212f82db967343aa8e203916100b604.tar.gz
Add OpenCensus build modules required for gRPC
Add Soong build modules that are required compile-time and runtime dependencies of gRPC Java client libraries. Note that the current grpc-java-core module is imported which explains why there are no build-time errors. Test: m opencensus-java-api && m opencensus-java-contrib-grpc-metrics Bug: 148404241 Exempt-From-Owner-Approval: rebase, cp of change in other branch Change-Id: Ie92d1ca959ca2104bae7b92b4509b42f8e4184f7 Merged-In: Ie92d1ca959ca2104bae7b92b4509b42f8e4184f7
-rw-r--r--api/Android.bp31
1 files changed, 31 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp
new file mode 100644
index 00000000..003a4dee
--- /dev/null
+++ b/api/Android.bp
@@ -0,0 +1,31 @@
+// Copyright (C) 2020 The Android Open Source Project
+//
+// 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.
+//
+//
+
+java_library_host {
+ name: "opencensus-java-api",
+ srcs: [
+ "src/main/java/**/*.java",
+ ],
+ plugins: [
+ "dagger2-auto-value",
+ ],
+ libs: [
+ "error_prone_annotations",
+ "dagger2-auto-value",
+ "grpc-java-context",
+ "jsr305",
+ ],
+}