From 2690e046f42fd972bd8a52c291d8732dc02f9913 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Fri, 12 Feb 2021 19:43:37 -0800 Subject: [LSC] Add LOCAL_LICENSE_KINDS to external/grpc-grpc-java Added SPDX-license-identifier-Apache-2.0 to: Android.bp annotation-stubs/Android.bp auth/Android.bp compiler/Android.bp context/Android.bp core/Android.bp netty/shaded/Android.bp okhttp/Android.bp protobuf-lite/Android.bp protobuf/Android.bp stub/Android.bp testing/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I98975a2b1aa17d6a6b70cfa41f0b9ce6e217489b --- Android.bp | 25 ++++++++++++++++++++++++- annotation-stubs/Android.bp | 9 +++++++++ auth/Android.bp | 9 +++++++++ compiler/Android.bp | 9 +++++++++ context/Android.bp | 9 +++++++++ core/Android.bp | 9 +++++++++ netty/shaded/Android.bp | 9 +++++++++ okhttp/Android.bp | 9 +++++++++ protobuf-lite/Android.bp | 9 +++++++++ protobuf/Android.bp | 9 +++++++++ stub/Android.bp | 9 +++++++++ testing/Android.bp | 9 +++++++++ 12 files changed, 123 insertions(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index 0fa5a64d5..d86573e20 100644 --- a/Android.bp +++ b/Android.bp @@ -14,6 +14,29 @@ // // +package { + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + +// Added automatically by a large-scale-change +// +// large-scale-change included anything that looked like it might be a license +// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. +// +// Please consider removing redundant or irrelevant files from 'license_text:'. +// See: http://go/android-license-faq +license { + name: "external_grpc-grpc-java_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "LICENSE", + "NOTICE.txt", + ], +} + java_library_host { name: "grpc-java", static_libs: [ @@ -41,4 +64,4 @@ java_library { "grpc-java-okhttp", ], sdk_version: "current", -} \ No newline at end of file +} diff --git a/annotation-stubs/Android.bp b/annotation-stubs/Android.bp index 78cb49daa..2f1c39c1b 100644 --- a/annotation-stubs/Android.bp +++ b/annotation-stubs/Android.bp @@ -13,6 +13,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library { name: "grpc-java-annotation-stubs", host_supported: true, diff --git a/auth/Android.bp b/auth/Android.bp index 68d08f430..6d0b6b2a4 100644 --- a/auth/Android.bp +++ b/auth/Android.bp @@ -13,6 +13,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library_host { name: "grpc-java-auth", srcs: [ diff --git a/compiler/Android.bp b/compiler/Android.bp index 833559a4f..a51258032 100644 --- a/compiler/Android.bp +++ b/compiler/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_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + cc_binary_host { name: "protoc-gen-grpc-java-plugin", srcs: [ diff --git a/context/Android.bp b/context/Android.bp index 410ce78c4..814b17a74 100644 --- a/context/Android.bp +++ b/context/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_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library { name: "grpc-java-context", host_supported: true, diff --git a/core/Android.bp b/core/Android.bp index 9bfddc42f..d563293c8 100644 --- a/core/Android.bp +++ b/core/Android.bp @@ -13,6 +13,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library { name: "grpc-java-core", host_supported: true, diff --git a/netty/shaded/Android.bp b/netty/shaded/Android.bp index 5aecf42ba..190240219 100644 --- a/netty/shaded/Android.bp +++ b/netty/shaded/Android.bp @@ -19,6 +19,15 @@ // external dependencies and missing build-system support. // // WARNING: The artifact version must match the source to avoid runtime issues. +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library_host { name: "grpc-java-netty-shaded", static_libs: [ diff --git a/okhttp/Android.bp b/okhttp/Android.bp index 4e329f276..7212a3f57 100644 --- a/okhttp/Android.bp +++ b/okhttp/Android.bp @@ -13,6 +13,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "external_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library { name: "grpc-java-okhttp", host_supported: true, diff --git a/protobuf-lite/Android.bp b/protobuf-lite/Android.bp index f1c46518b..2a2ed945c 100644 --- a/protobuf-lite/Android.bp +++ b/protobuf-lite/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_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library { name: "grpc-java-protobuf-lite", host_supported: true, diff --git a/protobuf/Android.bp b/protobuf/Android.bp index 3e1d243f9..f51c27200 100644 --- a/protobuf/Android.bp +++ b/protobuf/Android.bp @@ -15,6 +15,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_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library_host { name: "grpc-java-protobuf", srcs: [ diff --git a/stub/Android.bp b/stub/Android.bp index af5270121..466195dcf 100644 --- a/stub/Android.bp +++ b/stub/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_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library { name: "grpc-java-stub", host_supported: true, diff --git a/testing/Android.bp b/testing/Android.bp index 91dc79276..2d2a1c6d4 100644 --- a/testing/Android.bp +++ b/testing/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_grpc-grpc-java_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["external_grpc-grpc-java_license"], +} + java_library { name: "grpc-java-testing", host_supported: true, -- cgit v1.2.3