• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: [
3        "external_kotlinc_license",
4        "external_kotlinc_asm_license",
5        "external_kotlinc_dart_license",
6        "external_kotlinc_rhino_license",
7        "external_kotlinc_qunit_license",
8        "external_kotlinc_gwt_license",
9        "external_kotlinc_guava_license",
10        "external_kotlinc_boost_license",
11        "external_kotlinc_closure_compiler_license",
12        "external_kotlinc_assemblyscript_license",
13        "external_kotlinc_aosp_license",
14        "external_kotlinc_asmble_license",
15        "external_kotlinc_sun_license",
16    ],
17}
18
19java_defaults {
20    name: "kotlin_stdlib_defaults",
21    host_supported: true,
22    sdk_version: "core_current",
23    apex_available: [
24        "//apex_available:anyapex",
25        "//apex_available:platform",
26    ],
27}
28
29java_import {
30    name: "kotlin-annotations",
31    defaults: ["kotlin_stdlib_defaults"],
32    jars: ["lib/annotations-13.0.jar"],
33}
34
35
36kotlin_plugin {
37    name: "kotlin-compose-compiler-plugin",
38    static_libs: ["kotlin-compose-compiler-hosted"],
39}
40
41// exclude_dirs is used to remove META-INF resources for java multi-release
42// jar support that soong does not support. https://openjdk.java.net/jeps/238
43
44java_import {
45    name: "kotlin-reflect",
46    defaults: ["kotlin_stdlib_defaults"],
47    jars: ["lib/kotlin-reflect.jar"],
48    exclude_dirs: ["META-INF/versions"],
49}
50
51java_import {
52    name: "kotlin-stdlib",
53    defaults: ["kotlin_stdlib_defaults"],
54    jars: ["lib/kotlin-stdlib.jar"],
55    exclude_dirs: ["META-INF/versions"],
56}
57
58java_import {
59    name: "kotlin-stdlib-jdk7",
60    defaults: ["kotlin_stdlib_defaults"],
61    jars: ["lib/kotlin-stdlib-jdk7.jar"],
62    exclude_dirs: ["META-INF/versions"],
63}
64
65java_import {
66    name: "kotlin-stdlib-jdk8",
67    defaults: ["kotlin_stdlib_defaults"],
68    jars: [
69        "lib/kotlin-stdlib-jdk8.jar",
70        "lib/kotlin-stdlib-jdk7.jar",
71    ],
72    exclude_dirs: ["META-INF/versions"],
73}
74
75java_import {
76    name: "kotlin-test",
77    defaults: ["kotlin_stdlib_defaults"],
78    jars: [
79        "lib/kotlin-test.jar",
80        "lib/kotlin-test-junit.jar",
81    ],
82    exclude_dirs: ["META-INF/versions"],
83}
84
85java_import {
86    name: "kotlin-parcelize-runtime",
87    host_supported: true,
88    jars: ["lib/parcelize-runtime.jar"],
89    sdk_version: "core_current",
90    exclude_dirs: ["META-INF/versions"],
91    apex_available: [
92        "//apex_available:platform",
93        // AdServices is using androidx.datastore_datastore-core which requires the dependency
94        "com.android.adservices",
95        "com.android.extservices",
96        "com.android.ondevicepersonalization",
97    ],
98}
99
100java_import_host {
101    name: "kotlin-serialize-compiler-plugin-lib",
102    jars: ["lib/kotlin-serialization-compiler-plugin.jar"],
103    sdk_version: "core_current",
104    exclude_dirs: ["META-INF/versions"],
105}
106
107kotlin_plugin {
108    name: "kotlin-serialize-compiler-plugin",
109    static_libs: ["kotlin-serialize-compiler-plugin-lib"],
110}
111
112java_import_host {
113    name: "kotlin-parcelize-compiler-plugin-lib",
114    jars: ["lib/parcelize-compiler.jar"],
115    sdk_version: "core_current",
116    exclude_dirs: ["META-INF/versions"],
117}
118
119kotlin_plugin {
120    name: "kotlin-parcelize-compiler-plugin",
121    static_libs: ["kotlin-parcelize-compiler-plugin-lib"],
122}
123
124// See: http://go/android-license-faq
125license {
126    name: "external_kotlinc_license",
127    visibility: [":__subpackages__"],
128    license_kinds: [
129        "SPDX-license-identifier-Apache-2.0",
130    ],
131    license_text: [
132        "license/LICENSE.txt",
133        "license/NOTICE.txt",
134    ],
135}
136
137license {
138    name: "external_kotlinc_aether_license",
139    visibility: [":__subpackages__"],
140    license_kinds: [
141        "SPDX-license-identifier-EPL",
142    ],
143    license_text: [
144        "license/third_party/aether_license.txt",
145    ],
146}
147
148license {
149    name: "external_kotlinc_aosp_license",
150    visibility: [":__subpackages__"],
151    license_kinds: [
152        "SPDX-license-identifier-Apache-2.0",
153    ],
154    copyright_notice: "Copyright (C) 2011-15 The Android Open Source Project",
155    license_text: [
156        "license/third_party/aosp_license.txt",
157    ],
158}
159
160license {
161    name: "external_kotlinc_args4j_license",
162    visibility: [":__subpackages__"],
163    license_kinds: [
164        "SPDX-license-identifier-MIT",
165    ],
166    license_text: [
167        "license/third_party/args4j_LICENSE.txt",
168    ],
169}
170
171license {
172    name: "external_kotlinc_asm_license",
173    package_name: "ASM",
174    visibility: [":__subpackages__"],
175    license_kinds: [
176        "SPDX-license-identifier-BSD",
177    ],
178    copyright_notice: "Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom",
179    license_text: [
180        "license/third_party/asm_license.txt",
181    ],
182}
183
184license {
185    name: "external_kotlinc_asmble_license",
186    visibility: [":__subpackages__"],
187    license_kinds: [
188        "SPDX-license-identifier-MIT",
189    ],
190    copyright_notice: "Copyright (C) 2018 Chad Retz",
191    license_text: [
192        "license/third_party/asmble_license.txt",
193    ],
194}
195
196license {
197    name: "external_kotlinc_assemblyscript_license",
198    package_name: "assemblyscript standard library",
199    visibility: [":__subpackages__"],
200    license_kinds: [
201        "SPDX-license-identifier-Apache-2.0",
202    ],
203    copyright_notice: "Derived from assemblyscript standard library",
204    license_text: [
205        "license/third_party/assemblyscript_license.txt",
206    ],
207}
208
209license {
210    name: "external_kotlinc_boost_license",
211    package_name: "boost special math functions",
212    visibility: [":__subpackages__"],
213    license_kinds: [
214        "SPDX-license-identifier-BSL-1.0",
215    ],
216    copyright_notice: "Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.",
217    license_text: [
218        "license/third_party/boost_LICENSE.txt",
219    ],
220}
221
222license {
223    name: "external_kotlinc_closure_compiler_license",
224    package_name: "Google Closure Library",
225    visibility: [":__subpackages__"],
226    license_kinds: [
227        "SPDX-license-identifier-Apache-2.0",
228    ],
229    copyright_notice: "Google Closure Library, Copyright 2009 The Closure Library Authors",
230    license_text: [
231        "license/third_party/closure-compiler_LICENSE.txt",
232    ],
233}
234
235license {
236    name: "external_kotlinc_dart_license",
237    package_name: "Dart compiler",
238    visibility: [":__subpackages__"],
239    license_kinds: [
240        "SPDX-license-identifier-BSD",
241    ],
242    copyright_notice: "Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,",
243    license_text: [
244        "license/third_party/dart_LICENSE.txt",
245    ],
246}
247
248license {
249    name: "external_kotlinc_fastutil_license",
250    visibility: [":__subpackages__"],
251    license_kinds: [
252        "SPDX-license-identifier-Apache-2.0",
253    ],
254    license_text: [
255        "license/third_party/fastutil_licence",
256    ],
257}
258
259license {
260    name: "external_kotlinc_gradle_license",
261    package_name: "Gradle",
262    visibility: [":__subpackages__"],
263    license_kinds: [
264        "SPDX-license-identifier-Apache-2.0",
265        "SPDX-license-identifier-BSD-3-Clause",
266        "SPDX-license-identifier-BSD",
267        "SPDX-license-identifier-CDDL-1.0",
268        "SPDX-license-identifier-EPL",
269        "SPDX-license-identifier-MIT",
270        "SPDX-license-identifier-LGPL-2.1",
271        "SPDX-license-identifier-MPL-2.0",
272    ],
273    copyright_notice: "Gradle, Copyright 2002-2017 Gradle, Inc.",
274    license_text: [
275        "license/third_party/gradle_license.txt",
276    ],
277}
278
279license {
280    name: "external_kotlinc_guava_license",
281    package_name: "Guava",
282    visibility: [":__subpackages__"],
283    license_kinds: [
284        "SPDX-license-identifier-Apache-2.0",
285    ],
286    copyright_notice: "Derived from Guava's UnsignedLongs, (C) 2011 The Guava Authors",
287    license_text: [
288        "license/third_party/guava_license.txt",
289    ],
290}
291
292license {
293    name: "external_kotlinc_gwt_license",
294    package_name: "GWT",
295    visibility: [":__subpackages__"],
296    license_kinds: [
297        "SPDX-license-identifier-Apache-2.0",
298    ],
299    copyright_notice: "Derived from GWT, (C) 2007-08 Google Inc.",
300    license_text: [
301        "license/third_party/gwt_license.txt",
302    ],
303}
304
305license {
306    name: "external_kotlinc_jquery_license",
307    package_name: "jQuery JavaScript Library v1.6.2",
308    visibility: [":__subpackages__"],
309    license_kinds: [
310        "SPDX-license-identifier-MIT",
311    ],
312    copyright_notice: "jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig",
313    license_text: [
314        "license/third_party/jquery_license.txt",
315    ],
316}
317
318license {
319    name: "external_kotlinc_jshashtable_license",
320    visibility: [":__subpackages__"],
321    license_kinds: [
322        "SPDX-license-identifier-Apache-2.0",
323    ],
324    license_text: [
325        "license/third_party/jshashtable_license.txt",
326    ],
327}
328
329license {
330    name: "external_kotlinc_karma_teamcity_reporter_license",
331    visibility: [":__subpackages__"],
332    license_kinds: [
333        "SPDX-license-identifier-MIT",
334    ],
335    copyright_notice: "Copyright (C) 2011-2013 Vojta Jína and contributors.",
336    license_text: [
337        "license/third_party/karma-teamcity-reporter_LICENSE.txt",
338    ],
339}
340
341license {
342    name: "external_kotlinc_karma_license",
343    visibility: [":__subpackages__"],
344    license_kinds: [
345        "SPDX-license-identifier-MIT",
346    ],
347    copyright_notice: "Copyright (C) 2011-2019 Google, Inc.",
348    license_text: [
349        "license/third_party/karma_LICENSE.txt",
350    ],
351}
352
353license {
354    name: "external_kotlinc_lodash_license",
355    visibility: [":__subpackages__"],
356    license_kinds: [
357        "SPDX-license-identifier-MIT",
358        "SPDX-license-identifier-CC0-1.0",
359    ],
360    copyright_notice: "Copyright JS Foundation and other contributors <https://js.foundation/>",
361    license_text: [
362        "license/third_party/lodash_LICENSE.txt",
363    ],
364}
365
366license {
367    name: "external_kotlinc_lombok_license",
368    package_name: "Project Lombok",
369    visibility: [":__subpackages__"],
370    license_kinds: [
371        "SPDX-license-identifier-MIT",
372    ],
373    copyright_notice: "Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors",
374    license_text: [
375        "license/third_party/lombok_LICENSE.txt",
376    ],
377}
378
379license {
380    name: "external_kotlinc_maven_license",
381    visibility: [":__subpackages__"],
382    license_kinds: [
383        "SPDX-license-identifier-Apache-2.0",
384    ],
385    license_text: [
386        "license/third_party/maven_LICENSE.txt",
387    ],
388}
389
390license {
391    name: "external_kotlinc_mocha_teamcity_reporter_license",
392    visibility: [":__subpackages__"],
393    license_kinds: [
394        "SPDX-license-identifier-MIT",
395    ],
396    copyright_notice: "Copyright (c) 2016 Jamie Sherriff",
397    license_text: [
398        "license/third_party/mocha-teamcity-reporter_LICENSE.txt",
399    ],
400}
401
402license {
403    name: "external_kotlinc_prototype_license",
404    visibility: [":__subpackages__"],
405    license_kinds: [
406        "SPDX-license-identifier-MIT",
407    ],
408    license_text: [
409        "license/third_party/prototype_license.txt",
410    ],
411}
412
413license {
414    name: "external_kotlinc_qunit_license",
415    package_name: "QUnit",
416    visibility: [":__subpackages__"],
417    license_kinds: [
418        "SPDX-license-identifier-MIT",
419    ],
420    copyright_notice: "QUnit, Copyright (c) 2012 John Resig, Jörn Zaefferer,",
421    license_text: [
422        "license/third_party/qunit_license.txt",
423    ],
424}
425
426license {
427    name: "external_kotlinc_rhino_license",
428    package_name: "Rhino",
429    visibility: [":__subpackages__"],
430    license_kinds: [
431        "SPDX-license-identifier-MPL-1.1",
432    ],
433    copyright_notice: "Originally part of GWT, (C) 2007-08 Google Inc., distributed under the Apache 2 license. The code is derived from Rhino, (C) 1997-1999 Netscape Communications Corporation, distributed under the Netscape Public License.",
434    license_text: [
435        "license/third_party/rhino_LICENSE.txt",
436    ],
437}
438
439license {
440    name: "external_kotlinc_scala_license",
441    visibility: [":__subpackages__"],
442    license_kinds: [
443        "SPDX-license-identifier-BSD",
444    ],
445    license_text: [
446        "license/third_party/scala_license.txt",
447    ],
448}
449
450license {
451    name: "external_kotlinc_sun_license",
452    visibility: [":__subpackages__"],
453    copyright_notice: "Copyright (C) 1993 by Sun Microsystems, Inc.",
454    license_kinds: [
455        "legacy_notice",
456    ],
457    license_text: [
458        "license/third_party/sun_license.txt",
459    ],
460}
461
462license {
463    name: "external_kotlinc_teamcity_service_messages_license",
464    visibility: [":__subpackages__"],
465    license_kinds: [
466        "SPDX-license-identifier-MIT",
467    ],
468    copyright_notice: "Copyright (c) 2013 Aaron Forsander",
469    license_text: [
470        "license/third_party/teamcity-service-messages_LICENSE.txt",
471    ],
472}
473
474license {
475    name: "external_kotlinc_trove_license",
476    visibility: [":__subpackages__"],
477    license_kinds: [
478        "SPDX-license-identifier-LGPL-2.1",
479    ],
480    license_text: [
481        "license/third_party/trove_license.txt",
482    ],
483}
484
485license {
486    name: "external_kotlinc_trove_readme_license",
487    visibility: [":__subpackages__"],
488    license_kinds: [
489        "SPDX-license-identifier-ISC",
490    ],
491    license_text: [
492        "license/third_party/trove_readme_license.txt",
493    ],
494}
495
496license {
497    name: "external_kotlinc_testdata_dagger_license",
498    package_name: "Dagger",
499    visibility: [":__subpackages__"],
500    license_kinds: [
501        "SPDX-license-identifier-Apache-2.0",
502    ],
503    copyright_notice: "Dagger, Copyright (C) 2013 Square, Inc.",
504    license_text: [
505        "license/third_party/testdata/dagger_license.txt",
506    ],
507}
508
509license {
510    name: "external_kotlinc_testdata_eclipse_distribution_license",
511    package_name: "javax.persistence",
512    visibility: [":__subpackages__"],
513    license_kinds: [
514        "SPDX-license-identifier-BSD",
515    ],
516    copyright_notice: "javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.",
517    license_text: [
518        "license/third_party/testdata/eclipse_distribution_license.txt",
519    ],
520}
521
522license {
523    name: "external_kotlinc_testdata_eclipse_license",
524    package_name: "javax.persistence",
525    visibility: [":__subpackages__"],
526    license_kinds: [
527        "SPDX-license-identifier-EPL-1.0",
528    ],
529    copyright_notice: "javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.",
530    license_text: [
531        "license/third_party/testdata/eclipse_license.txt",
532    ],
533}
534
535license {
536    name: "external_kotlinc_testdata_findbugs_license",
537    package_name: "Bytecode Analysis Framework",
538    visibility: [":__subpackages__"],
539    license_kinds: [
540        "SPDX-license-identifier-LGPL-2.1",
541    ],
542    copyright_notice: "Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland",
543    license_text: [
544        "license/third_party/testdata/findbugs_license.txt",
545    ],
546}
547
548license {
549    name: "external_kotlinc_testdata_jspecify_license",
550    package_name: "JSpecify",
551    visibility: [":__subpackages__"],
552    license_kinds: [
553        "SPDX-license-identifier-Apache-2.0",
554    ],
555    copyright_notice: "JSpecify, Copyright (C) 2020 The JSpecify Authors",
556    license_text: [
557        "license/third_party/testdata/jspecify_license.txt",
558    ],
559}
560
561license {
562    name: "external_kotlinc_testdata_lombok_license",
563    package_name: "Project Lombok",
564    visibility: [":__subpackages__"],
565    license_kinds: [
566        "SPDX-license-identifier-MIT",
567    ],
568    copyright_notice: "Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors",
569    license_text: [
570        "license/third_party/testdata/lombok_license.txt",
571    ],
572}
573
574license {
575    name: "external_kotlinc_testdata_rxjava_license",
576    package_name: "RxJava",
577    visibility: [":__subpackages__"],
578    license_kinds: [
579        "SPDX-license-identifier-Apache-2.0",
580    ],
581    copyright_notice: "RxJava, Copyright (c) 2016-present, RxJava Contributors",
582    license_text: [
583        "license/third_party/testdata/rxjava_license.txt",
584    ],
585}
586
587license {
588    name: "external_kotlinc_testdata_spring_license",
589    package_name: "Spring Framework",
590    visibility: [":__subpackages__"],
591    license_kinds: [
592        "SPDX-license-identifier-Apache-2.0",
593    ],
594    copyright_notice: "Spring Framework, Copyright 2002-2007 the original author or authors.",
595    license_text: [
596        "license/third_party/testdata/spring_license.txt",
597    ],
598}
599