aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-17 18:53:12 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-17 18:53:12 +0000
commit5760e6616fdbbbfb2939941770e6d1e8ed71ce62 (patch)
treec8d8b8f0fe9e29739c1befe0762e4a90dbb618a8
parentc6f156ac9e38762be615e6f2e6674224c3814f25 (diff)
parent503828531907d29256aecbc5c45fa06887bca139 (diff)
downloadopencensus-java-5760e6616fdbbbfb2939941770e6d1e8ed71ce62.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/opencensus-java am: 2ae4db53da am: b3c96bd0a1 am: 5038285319
Original change: https://android-review.googlesource.com/c/platform/external/opencensus-java/+/1588749 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ief097f6ef72ed8448a83580c56fd2abbf8ff31ca
-rw-r--r--Android.bp31
-rw-r--r--api/Android.bp11
-rw-r--r--contrib/grpc_metrics/Android.bp11
3 files changed, 51 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..cc59bbaa
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,31 @@
+//
+// 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 f939198b..537d9696 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -14,6 +14,15 @@
//
//
+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 {
name: "opencensus-java-api",
host_supported: true,
@@ -30,4 +39,4 @@ java_library {
"jsr305",
],
sdk_version: "current",
-} \ No newline at end of file
+}
diff --git a/contrib/grpc_metrics/Android.bp b/contrib/grpc_metrics/Android.bp
index 41ca6506..8770bd62 100644
--- a/contrib/grpc_metrics/Android.bp
+++ b/contrib/grpc_metrics/Android.bp
@@ -14,6 +14,15 @@
//
//
+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 {
name: "opencensus-java-contrib-grpc-metrics",
host_supported: true,
@@ -25,4 +34,4 @@ java_library {
"guava",
],
sdk_version: "current",
-} \ No newline at end of file
+}