• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: ["external_kotlinc_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18//
19// large-scale-change included anything that looked like it might be a license
20// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
21//
22// Please consider removing redundant or irrelevant files from 'license_text:'.
23// See: http://go/android-license-faq
24license {
25    name: "external_kotlinc_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29        "SPDX-license-identifier-BSD",
30        "SPDX-license-identifier-BSL-1.0",
31        "SPDX-license-identifier-CC0-1.0",
32        "SPDX-license-identifier-EPL",
33        "SPDX-license-identifier-GPL",
34        "SPDX-license-identifier-GPL-2.0",
35        "SPDX-license-identifier-ISC",
36        "SPDX-license-identifier-JSON",
37        "SPDX-license-identifier-LGPL",
38        "SPDX-license-identifier-LGPL-2.1",
39        "SPDX-license-identifier-LGPL-3.0",
40        "SPDX-license-identifier-MIT",
41        "SPDX-license-identifier-MPL",
42        "SPDX-license-identifier-MPL-1.0",
43        "legacy_notice",
44        "legacy_restricted",
45    ],
46    license_text: [
47        "LICENSE",
48        "license/**/*",
49    ],
50}
51
52java_import {
53    name: "kotlin-annotations",
54    host_supported: true,
55    jars: ["lib/annotations-13.0.jar"],
56    sdk_version: "core_current",
57    notice: "license/NOTICE.txt",
58}
59
60// exclude_dirs is used to remove META-INF resources for java multi-release
61// jar support that soong does not support. https://openjdk.java.net/jeps/238
62
63java_import {
64    name: "kotlin-reflect",
65    host_supported: true,
66    jars: ["lib/kotlin-reflect.jar"],
67    sdk_version: "core_current",
68    exclude_dirs: ["META-INF/versions"],
69    notice: "license/NOTICE.txt",
70}
71
72java_import {
73    name: "kotlin-stdlib",
74    host_supported: true,
75    jars: ["lib/kotlin-stdlib.jar"],
76    sdk_version: "core_current",
77    exclude_dirs: ["META-INF/versions"],
78    notice: "license/NOTICE.txt",
79    apex_available: [
80        "//apex_available:platform",
81        "//apex_available:anyapex",
82    ],
83}
84
85java_import {
86    name: "kotlin-stdlib-jdk7",
87    host_supported: true,
88    jars: ["lib/kotlin-stdlib-jdk7.jar"],
89    sdk_version: "core_current",
90    exclude_dirs: ["META-INF/versions"],
91    notice: "license/NOTICE.txt",
92}
93
94java_import {
95    name: "kotlin-stdlib-jdk8",
96    host_supported: true,
97    jars: ["lib/kotlin-stdlib-jdk8.jar"],
98    sdk_version: "core_current",
99    exclude_dirs: ["META-INF/versions"],
100    notice: "license/NOTICE.txt",
101    apex_available: [
102        "//apex_available:platform",
103        "//apex_available:anyapex",
104    ],
105}
106
107java_import {
108    name: "kotlin-test",
109    host_supported: true,
110    jars: [
111        "lib/kotlin-test.jar",
112        "lib/kotlin-test-junit.jar",
113    ],
114    sdk_version: "core_current",
115    exclude_dirs: ["META-INF/versions"],
116    notice: "license/NOTICE.txt",
117}
118