summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-16 22:08:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-16 22:08:49 +0000
commitafb5cd70d01379e3f1b0fe38d6caaeff5b491490 (patch)
tree99f40eb80635b8b2a70c4cb1066a900f3f890129
parenta0f5302682fcb4bf3083b6ba2fdb0dc12b5ed520 (diff)
parent06bf5c80f56a9e44b027b97e1781d63758337394 (diff)
downloadkotlinc-afb5cd70d01379e3f1b0fe38d6caaeff5b491490.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/kotlinc am: 816a21ed45 am: ea6bb32672 am: 06bf5c80f5
Original change: https://android-review.googlesource.com/c/platform/external/kotlinc/+/1588704 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I50d95e8a937b4f3c93b5910d1e3f3539c37d8fea
-rw-r--r--Android.bp51
1 files changed, 51 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index f87266f..e9b9352 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,54 @@
+package {
+ default_applicable_licenses: ["external_kotlinc_license"],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+//
+// 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_kotlinc_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-BSL-1.0",
+ "SPDX-license-identifier-CC0-1.0",
+ "SPDX-license-identifier-EPL",
+ "SPDX-license-identifier-GPL",
+ "SPDX-license-identifier-GPL-2.0",
+ "SPDX-license-identifier-ISC",
+ "SPDX-license-identifier-JSON",
+ "SPDX-license-identifier-LGPL",
+ "SPDX-license-identifier-LGPL-2.1",
+ "SPDX-license-identifier-LGPL-3.0",
+ "SPDX-license-identifier-MIT",
+ "SPDX-license-identifier-MPL",
+ "SPDX-license-identifier-MPL-1.0",
+ "legacy_notice",
+ "legacy_restricted",
+ ],
+ license_text: [
+ "LICENSE",
+ "license/**/*",
+ ],
+}
+
java_import {
name: "kotlin-annotations",
host_supported: true,