summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-16 21:06:37 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-16 21:06:37 +0000
commitea6bb3267251395077a91f1b3ac9502aac78055e (patch)
tree99f40eb80635b8b2a70c4cb1066a900f3f890129
parentff1164e0a6cd9a0c964c5d72cf65bfc73cff41fd (diff)
parent816a21ed45ebf463648aa8ae484b52642132e4e3 (diff)
downloadkotlinc-ea6bb3267251395077a91f1b3ac9502aac78055e.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/kotlinc am: 816a21ed45
Original change: https://android-review.googlesource.com/c/platform/external/kotlinc/+/1588704 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2175953f36a3ef344d1db31b9d4e298dfe2da4f2
-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,