summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-12 14:51:36 -0800
committerBob Badour <bbadour@google.com>2021-02-12 14:51:36 -0800
commit664a9e857a40eac782ce19eeeb19f57acf87b4c4 (patch)
tree9f99e17811085cda21c49bd5ff4ee1dfb061940e
parentdfada88c05248db6e2c83f8974c29a608cc3bd58 (diff)
downloadobjenesis-664a9e857a40eac782ce19eeeb19f57acf87b4c4.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/objenesis
Added SPDX-license-identifier-Apache-2.0 to: Android.bp tck-android/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I6619c087965fdc808952cc6f56379acb1e7cbbfa
-rw-r--r--Android.bp23
-rw-r--r--tck-android/Android.bp9
2 files changed, 32 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index b00600f..9c1cc83 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,29 @@
//
//
+package {
+ default_applicable_licenses: ["external_objenesis_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_objenesis_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ ],
+ license_text: [
+ "LICENSE.txt",
+ "NOTICE",
+ ],
+}
+
java_library_static {
name: "objenesis",
host_supported: true,
diff --git a/tck-android/Android.bp b/tck-android/Android.bp
index 7de3742..5450758 100644
--- a/tck-android/Android.bp
+++ b/tck-android/Android.bp
@@ -21,6 +21,15 @@
// adb install -r ${ANDROID_PRODUCT_OUT}/data/app/ObjenesisTck/ObjenesisTck.apk
// adb shell am instrument -w org.objenesis.tck.android/.TckInstrumentation
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_objenesis_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["external_objenesis_license"],
+}
+
android_test {
name: "ObjenesisTck",
sdk_version: "current",