aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-08 16:01:29 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-08 16:01:29 +0000
commit89ef704f4d6e9849ed7c20f40ca80218f545e23f (patch)
tree7edc7e823c381782540373dff6d3e85b60a4d82a
parent224886bd41ef5a70a901599904b25356413ccb6f (diff)
parent72badb3fe96d58f4495589b7256d3ca9e1fdce96 (diff)
downloadopencensus-java-aml_tz2_303800001.tar.gz
Change-Id: I7338d39a2fb4ad77b0f4007964079342d9a13a44
-rw-r--r--Android.bp31
-rw-r--r--api/Android.bp17
-rw-r--r--contrib/grpc_metrics/Android.bp13
3 files changed, 4 insertions, 57 deletions
diff --git a/Android.bp b/Android.bp
deleted file mode 100644
index cc59bbaa..00000000
--- a/Android.bp
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// Copyright (C) 2021 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.
-
-package {
- default_applicable_licenses: ["external_opencensus-java_license"],
-}
-
-// Added automatically by a large-scale-change
-// See: http://go/android-license-faq
-license {
- name: "external_opencensus-java_license",
- visibility: [":__subpackages__"],
- license_kinds: [
- "SPDX-license-identifier-Apache-2.0",
- ],
- license_text: [
- "LICENSE",
- ],
-}
diff --git a/api/Android.bp b/api/Android.bp
index 537d9696..003a4dee 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -14,29 +14,18 @@
//
//
-package {
- // See: http://go/android-license-faq
- // A large-scale-change added 'default_applicable_licenses' to import
- // all of the 'license_kinds' from "external_opencensus-java_license"
- // to get the below license kinds:
- // SPDX-license-identifier-Apache-2.0
- default_applicable_licenses: ["external_opencensus-java_license"],
-}
-
-java_library {
+java_library_host {
name: "opencensus-java-api",
- host_supported: true,
srcs: [
"src/main/java/**/*.java",
],
plugins: [
- "auto_value_plugin",
+ "dagger2-auto-value",
],
libs: [
"error_prone_annotations",
- "auto_value_annotations",
+ "dagger2-auto-value",
"grpc-java-context",
"jsr305",
],
- sdk_version: "current",
}
diff --git a/contrib/grpc_metrics/Android.bp b/contrib/grpc_metrics/Android.bp
index 8770bd62..9d045184 100644
--- a/contrib/grpc_metrics/Android.bp
+++ b/contrib/grpc_metrics/Android.bp
@@ -14,18 +14,8 @@
//
//
-package {
- // See: http://go/android-license-faq
- // A large-scale-change added 'default_applicable_licenses' to import
- // all of the 'license_kinds' from "external_opencensus-java_license"
- // to get the below license kinds:
- // SPDX-license-identifier-Apache-2.0
- default_applicable_licenses: ["external_opencensus-java_license"],
-}
-
-java_library {
+java_library_host {
name: "opencensus-java-contrib-grpc-metrics",
- host_supported: true,
srcs: [
"src/main/java/**/*.java",
],
@@ -33,5 +23,4 @@ java_library {
"opencensus-java-api",
"guava",
],
- sdk_version: "current",
}