• Home
Name Date Size #Lines LOC

..--

third_party/03-May-2024-5,2764,339

COPYRIGHT.txtD03-May-2024601 1615

LICENSE.txtD03-May-202411.1 KiB203169

NOTICE.txtD03-May-2024482 97

README.mdD03-May-202413.8 KiB240183

README.md

1The Apache 2 license (given in full in [LICENSE.txt](LICENSE.txt)) applies to all code in this repository which is copyright
2by JetBrains. The following sections of the repository contain third-party code, to which different licenses
3may apply:
4
5## Kotlin Compiler
6
7The following modules contain third-party code and are incorporated into the Kotlin compiler and/or
8the Kotlin IntelliJ IDEA plugin:
9
10 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/inline/MaxStackFrameSizeAndLocalsCalculator.java
11     - License: BSD ([license/third_party/asm_license.txt][asm])
12     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
13
14 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/inline/MaxLocalsCalculator.java
15     - License: BSD ([license/third_party/asm_license.txt][asm])
16     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
17
18 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/MethodAnalyzer.kt
19     - License: BSD ([license/third_party/asm_license.txt][asm])
20     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
21
22 - Path: core/reflection.jvm/src/kotlin.reflect/jvm/internal/pcollections
23     - License: MIT ([license/third_party/pcollections_LICENSE.txt][pcollections])
24     - Origin: Derived from PCollections, A Persistent Java Collections Library (https://pcollections.org/)
25
26 - Path: eval4j/src/org/jetbrains/eval4j/interpreterLoop.kt
27     - License: BSD ([license/third_party/asm_license.txt][asm])
28     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
29
30 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/OptimizationBasicInterpreter.java
31     - License: BSD ([license/third_party/asm_license.txt][asm])
32     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
33
34 - Path: js/js.ast
35     - License: BSD ([license/third_party/dart_LICENSE.txt][dart])
36     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
37
38 - Path: js/js.inliner/src/org/jetbrains/kotlin/js/inline/FunctionInlineMutator.kt
39     - License: BSD ([license/third_party/dart_LICENSE.txt][dart])
40     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
41
42 - Path: js/js.parser/src/com/google
43      - License: Netscape Public License 1.1 ([license/third_party/rhino_LICENSE.txt][rhino])
44      - Origin: Originally part of GWT, (C) 2007-08 Google Inc., distributed under the Apache 2 license. The code
45        is derived from Rhino, (C) 1997-1999 Netscape Communications Corporation, distributed under the
46        Netscape Public License.
47
48 - Path: js/js.translator/qunit/qunit.js
49      - License: MIT ([license/third_party/qunit_license.txt][qunit])
50      - Origin: QUnit, Copyright (c) 2012 John Resig, Jörn Zaefferer,
51
52 - Path: libraries/stdlib/src/kotlin/collections
53      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
54      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
55
56 - Path: libraries/stdlib/unsigned/src/kotlin/UnsignedUtils.kt
57      - License: Apache 2 ([license/third_party/guava_license.txt][guava])
58      - Origin: Derived from Guava's UnsignedLongs, (C) 2011 The Guava Authors
59
60 - Path: libraries/stdlib/jvm/src/kotlin/util/MathJVM.kt
61      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
62      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
63
64 - Path: libraries/stdlib/js/src/kotlin/collections
65      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
66      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
67
68 - Path: libraries/stdlib/js-v1/src/js/long.js
69      - License: Apache 2 ([license/third_party/closure-compiler_LICENSE.txt][closure-compiler])
70      - Origin: Google Closure Library, Copyright 2009 The Closure Library Authors
71
72 - Path: libraries/stdlib/js-v1/src/js/polyfills.js
73      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
74      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
75
76 - Path: plugins/lint/android-annotations
77      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
78      - Origin: Copyright (C) 2011-15 The Android Open Source Project
79
80 - Path: plugins/lint/lint-api
81      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
82      - Origin: Copyright (C) 2011-15 The Android Open Source Project
83
84 - Path: plugins/lint/lint-checks
85      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
86      - Origin: Copyright (C) 2011-15 The Android Open Source Project
87
88 - Path: plugins/lint/lint-idea
89      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
90      - Origin: Copyright (C) 2011-15 The Android Open Source Project
91
92## Kotlin Test Data
93
94The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into
95any distributions of the compiler, libraries or plugin:
96
97 - Path: third-party/annotations/android
98      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
99      - Origin: Copyright (C) 2011-15 The Android Open Source Project
100
101 - Path: third-party/annotations/com/android
102      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
103      - Origin: Copyright (C) 2011-15 The Android Open Source Project
104
105 - Path: third-party/annotations/org/eclipse
106      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
107      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
108
109 - Path: third-party/annotations/androidx
110      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
111      - Origin: Copyright (C) 2011-15 The Android Open Source Project
112
113 - Path: third-party/annotations/edu/umd/cs/findbugs
114      - License: LGPL 2.1 ([license/third_party/testdata/findbugs_license.txt][findbugs])
115      - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland
116
117 - Path: third-party/jdk8-annotations/org/eclipse
118      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
119      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
120
121 - Path: third-party/annotations/io/reactivex
122      - License: Apache 2 ([license/third_party/testdata/rxjava_license.txt][rxjava])
123      - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors
124
125 - Path: third-party/annotations/lombok
126      - License: MIT ([license/third_party/testdata/lombok_license.txt][lombok])
127      - Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors
128
129 - Path: idea/idea-android/tests/org/jetbrains/kotlin/android/AndroidTestBase.java
130      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
131      - Origin: Copyright (C) 2011-15 The Android Open Source Project
132
133 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java
134      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
135      - Origin: Copyright (C) 2011-15 The Android Open Source Project
136
137 - Path: idea/testData/android/lint/IntRange.java
138      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
139      - Origin: Copyright (C) 2011-15 The Android Open Source Project
140
141 - Path: idea/testData/android/lint/RequiresPermission.java
142      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
143      - Origin: Copyright (C) 2011-15 The Android Open Source Project
144
145 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
146      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
147      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
148
149 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject
150      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
151      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
152
153 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2
154      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
155      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
156
157 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java
158      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
159      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
160
161## Kotlin Tools and Libraries Tests
162
163The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into
164any distributions of the tools or libraries:
165
166 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/PluginsDslIT.kt
167      - License: Apache 2 ([license/third_party/testdata/gradle_license.txt][gradle])
168      - Origin: Gradle, Copyright 2002-2017 Gradle, Inc.
169
170 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java
171      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
172             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
173      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
174
175 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java
176      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
177             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
178      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
179
180 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Embeddable.java
181      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
182             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
183      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
184
185 - Path: libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js
186      - License: MIT ([license/third_party/karma_LICENSE.txt](third_party/karma_LICENSE.txt)
187             and [license/third_party/karma-teamcity-reporter_LICENSE.txt](third_party/karma-teamcity-reporter_LICENSE.txt))
188      - Origin: Copyright (C) 2011-2019 Google, Inc. and Copyright (C) 2011-2013 Vojta Jína and contributors.
189
190 - Path: libraries/tools/kotlin-test-js-runner/mocha-kotlin-reporter.js
191      - License: MIT ([license/third_party/mocha-teamcity-reporter_LICENSE.txt](third_party/mocha-teamcity-reporter_LICENSE.txt))
192      - Origin: Copyright (c) 2016 Jamie Sherriff
193
194 - Path: libraries/tools/kotlin-test-js-runner/src/utils.ts
195      - License: MIT ([license/third_party/teamcity-service-messages_LICENSE.txt](third_party/teamcity-service-messages_LICENSE.txt)
196             and [license/third_party/lodash_LICENSE.txt](third_party/lodash_LICENSE.txt))
197      - Origin: Copyright (c) 2013 Aaron Forsander and Copyright JS Foundation and other contributors <https://js.foundation/>
198
199 - Path: libraries/tools/kotlin-test-js-runner/src/teamcity-format.js
200      - License: MIT ([license/third_party/mocha-teamcity-reporter_LICENSE.txt](third_party/mocha-teamcity-reporter_LICENSE.txt)
201             and [license/third_party/teamcity-service-messages_LICENSE.txt](third_party/teamcity-service-messages_LICENSE.txt))
202      - Origin: Copyright (c) 2016 Jamie Sherriff and Copyright (c) 2013 Aaron Forsander
203
204 - Path: libraries/tools/kotlin-source-map-loader/kotlin-source-map-loader.js
205      - License: MIT ([license/third_party/source-map-loader_LICENSE.txt](third_party/source-map-loader_LICENSE.txt))
206      - Origin: Copyright JS Foundation and other contributors
207
208## Example Code
209
210The following code is provided as examples and is not incorporated into
211any distributions of the compiler, libraries or plugin:
212
213 - Path: libraries/examples/browser-example/src/js/jquery.js
214      - License: MIT ([license/third_party/jquery_license.txt][jquery])
215      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
216
217 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js
218      - License: MIT ([license/third_party/jquery_license.txt][jquery])
219      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
220
221[aosp]: third_party/aosp_license.txt
222[asm]: third_party/asm_license.txt
223[boost]: third_party/boost_LICENSE.txt
224[closure-compiler]: third_party/closure-compiler_LICENSE.txt
225[dagger]: third_party/testdata/dagger_license.txt
226[dart]: third_party/dart_LICENSE.txt
227[eclipse]: third_party/testdata/eclipse_license.txt
228[eclipse-distribution]: third_party/testdata/eclipse_distribution_license.txt
229[findbugs]: third_party/testdata/findbugs_license.txt
230[gradle]: third_party/testdata/gradle_license.txt
231[guava]: third_party/guava_license.txt
232[gwt]: third_party/gwt_license.txt
233[jquery]: third_party/jquery_license.txt
234[lombok]: third_party/testdata/lombok_license.txt
235[pcollections]: third_party/pcollections_LICENSE.txt
236[qunit]: third_party/qunit_license.txt
237[rhino]: third_party/rhino_LICENSE.txt
238[rxjava]: third_party/testdata/rxjava_license.txt
239[spring]: third_party/testdata/spring_license.txt
240