• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/FastMethodAnalyzer.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: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/InstructionLivenessAnalyzer.kt
23     - License: BSD ([license/third_party/asm_license.txt][asm])
24     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
25
26 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/ControlFlowGraph.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/fixStack/FastStackAnalyzer.kt
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: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/temporaryVals/FastStoreLoadAnalyzer.kt
35     - License: BSD ([license/third_party/asm_license.txt][asm])
36     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
37
38 - Path: eval4j/src/org/jetbrains/eval4j/interpreterLoop.kt
39     - License: BSD ([license/third_party/asm_license.txt][asm])
40     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
41
42 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/OptimizationBasicInterpreter.java
43     - License: BSD ([license/third_party/asm_license.txt][asm])
44     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
45
46 - Path: js/js.ast
47     - License: BSD ([license/third_party/dart_LICENSE.txt][dart])
48     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
49
50 - Path: js/js.inliner/src/org/jetbrains/kotlin/js/inline/FunctionInlineMutator.kt
51     - License: BSD ([license/third_party/dart_LICENSE.txt][dart])
52     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
53
54 - Path: js/js.parser/src/com/google
55      - License: Netscape Public License 1.1 ([license/third_party/rhino_LICENSE.txt][rhino])
56      - Origin: Originally part of GWT, (C) 2007-08 Google Inc., distributed under the Apache 2 license. The code
57        is derived from Rhino, (C) 1997-1999 Netscape Communications Corporation, distributed under the
58        Netscape Public License.
59
60 - Path: js/js.translator/qunit/qunit.js
61      - License: MIT ([license/third_party/qunit_license.txt][qunit])
62      - Origin: QUnit, Copyright (c) 2012 John Resig, Jörn Zaefferer,
63
64 - Path: libraries/stdlib/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/unsigned/src/kotlin/UnsignedUtils.kt
69      - License: Apache 2 ([license/third_party/guava_license.txt][guava])
70      - Origin: Derived from Guava's UnsignedLongs, (C) 2011 The Guava Authors
71
72 - Path: libraries/stdlib/jvm/src/kotlin/util/MathJVM.kt
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: libraries/stdlib/js/src/kotlin/collections
77      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
78      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
79
80 - Path: libraries/stdlib/native-wasm/src/kotlin/collections
81      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
82      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
83
84 - Path: libraries/stdlib/js-v1/src/js/long.js
85      - License: Apache 2 ([license/third_party/closure-compiler_LICENSE.txt][closure-compiler])
86      - Origin: Google Closure Library, Copyright 2009 The Closure Library Authors
87
88 - Path: libraries/stdlib/js-v1/src/js/polyfills.js
89      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
90      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
91
92 - Path: libraries/stdlib/js/src/kotlin/js/math.polyfills.kt
93      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
94      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
95
96 - Path: libraries/stdlib/wasm/internal/kotlin/wasm/internal/Number2String.kt
97      - License: Apache 2 ([third_party/assemblyscript_license.txt][assemblyscript])
98      - Origin: Derived from assemblyscript standard library
99
100 - Path: plugins/lint/android-annotations
101      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
102      - Origin: Copyright (C) 2011-15 The Android Open Source Project
103
104 - Path: plugins/lint/lint-api
105      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
106      - Origin: Copyright (C) 2011-15 The Android Open Source Project
107
108 - Path: plugins/lint/lint-checks
109      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
110      - Origin: Copyright (C) 2011-15 The Android Open Source Project
111
112 - Path: plugins/lint/lint-idea
113      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
114      - Origin: Copyright (C) 2011-15 The Android Open Source Project
115
116 - Path: wasm/ir/src/org/jetbrains/kotlin/wasm/ir/convertors
117      - License: MIT ([license/third_party/asmble_license.txt][asmble])
118      - Origin: Copyright (C) 2018 Chad Retz
119
120 - Path: compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/ComposeLikeGenerationExtension.kt
121      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
122      - Origin: Derived from JetPack Compose compiler plugin code, Copyright 2019 The Android Open Source Project
123
124 - Path: libraries/stdlib/wasm/src/kotlin/text/FloatingPointConverter.kt
125   - License: MIT ([license/third_party/asmble_license.txt][asmble])
126   - Origin: Copyright (C) 2018 Chad Retz
127
128 - Path: libraries/stdlib/wasm/src/kotlin/math/fdlibm/
129   - License: SUN ([license/third_party/sun_license.txt][sun])
130   - Origin: Copyright (C) 1993 by Sun Microsystems, Inc.
131
132 - Path: kotlin-native/runtime/src/main/cpp/Utils.cpp
133   - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
134   - Origin: Derived from boost hash functions, Copyright 2005-2014 Daniel James
135
136## Kotlin Test Data
137
138The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into
139any distributions of the compiler, libraries or plugin:
140
141 - Path: third-party/annotations/android
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: third-party/annotations/com/android
146      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
147      - Origin: Copyright (C) 2011-15 The Android Open Source Project
148
149 - Path: third-party/annotations/org/eclipse
150      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
151      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
152
153 - Path: third-party/annotations/androidx
154      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
155      - Origin: Copyright (C) 2011-15 The Android Open Source Project
156
157 - Path: third-party/annotations/edu/umd/cs/findbugs
158      - License: LGPL 2.1 ([license/third_party/testdata/findbugs_license.txt][findbugs])
159      - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland
160
161 - Path: third-party/java8-annotations/org/eclipse
162      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
163      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
164
165 - Path: third-party/annotations/io/reactivex
166      - License: Apache 2 ([license/third_party/testdata/rxjava_license.txt][rxjava])
167      - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors
168
169 - Path: third-party/java8-annotations/org/jspecify
170      - License: Apache 2 ([license/third_party/testdata/jspecify_license.txt][jspecify])
171      - Origin: JSpecify, Copyright (C) 2020 The JSpecify Authors
172
173 - Path: third-party/java9-annotations/org/jspecify
174      - License: Apache 2 ([license/third_party/testdata/jspecify_license.txt][jspecify])
175      - Origin: JSpecify, Copyright (C) 2020 The JSpecify Authors
176
177 - Path: third-party/annotations/lombok
178      - License: MIT ([license/third_party/testdata/lombok_license.txt][lombok])
179      - Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors
180
181 - Path: idea/idea-android/tests/org/jetbrains/kotlin/android/AndroidTestBase.java
182      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
183      - Origin: Copyright (C) 2011-15 The Android Open Source Project
184
185 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java
186      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
187      - Origin: Copyright (C) 2011-15 The Android Open Source Project
188
189 - Path: idea/testData/android/lint/IntRange.java
190      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
191      - Origin: Copyright (C) 2011-15 The Android Open Source Project
192
193 - Path: idea/testData/android/lint/RequiresPermission.java
194      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
195      - Origin: Copyright (C) 2011-15 The Android Open Source Project
196
197 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
198      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
199      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
200
201 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject
202      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
203      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
204
205 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2
206      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
207      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
208
209 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java
210      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
211      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
212
213## Kotlin Tools and Libraries Tests
214
215The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into
216any distributions of the tools or libraries:
217
218 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/PluginsDslIT.kt
219      - License: Apache 2 ([license/third_party/gradle_license.txt][gradle])
220      - Origin: Gradle, Copyright 2002-2017 Gradle, Inc.
221
222 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java
223      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
224             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
225      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
226
227 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java
228      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
229             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
230      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
231
232 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Embeddable.java
233      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
234             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
235      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
236
237 - Path: libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js
238      - License: MIT ([license/third_party/karma_LICENSE.txt](third_party/karma_LICENSE.txt)
239             and [license/third_party/karma-teamcity-reporter_LICENSE.txt](third_party/karma-teamcity-reporter_LICENSE.txt))
240      - Origin: Copyright (C) 2011-2019 Google, Inc. and Copyright (C) 2011-2013 Vojta Jína and contributors.
241
242 - Path: libraries/tools/kotlin-test-js-runner/mocha-kotlin-reporter.js
243      - License: MIT ([license/third_party/mocha-teamcity-reporter_LICENSE.txt](third_party/mocha-teamcity-reporter_LICENSE.txt))
244      - Origin: Copyright (c) 2016 Jamie Sherriff
245
246 - Path: libraries/tools/kotlin-test-js-runner/src/utils.ts
247      - License: MIT ([license/third_party/teamcity-service-messages_LICENSE.txt](third_party/teamcity-service-messages_LICENSE.txt)
248             and [license/third_party/lodash_LICENSE.txt](third_party/lodash_LICENSE.txt))
249      - Origin: Copyright (c) 2013 Aaron Forsander and Copyright JS Foundation and other contributors <https://js.foundation/>
250
251 - Path: libraries/tools/kotlin-test-js-runner/src/teamcity-format.js
252      - License: MIT ([license/third_party/mocha-teamcity-reporter_LICENSE.txt](third_party/mocha-teamcity-reporter_LICENSE.txt)
253             and [license/third_party/teamcity-service-messages_LICENSE.txt](third_party/teamcity-service-messages_LICENSE.txt))
254      - Origin: Copyright (c) 2016 Jamie Sherriff and Copyright (c) 2013 Aaron Forsander
255
256## Example Code
257
258The following code is provided as examples and is not incorporated into
259any distributions of the compiler, libraries or plugin:
260
261 - Path: libraries/examples/browser-example/src/js/jquery.js
262      - License: MIT ([license/third_party/jquery_license.txt][jquery])
263      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
264
265 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js
266      - License: MIT ([license/third_party/jquery_license.txt][jquery])
267      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
268
269[aosp]: third_party/aosp_license.txt
270[asm]: third_party/asm_license.txt
271[boost]: third_party/boost_LICENSE.txt
272[closure-compiler]: third_party/closure-compiler_LICENSE.txt
273[dagger]: third_party/testdata/dagger_license.txt
274[dart]: third_party/dart_LICENSE.txt
275[eclipse]: third_party/testdata/eclipse_license.txt
276[eclipse-distribution]: third_party/testdata/eclipse_distribution_license.txt
277[findbugs]: third_party/testdata/findbugs_license.txt
278[gradle]: third_party/gradle_license.txt
279[guava]: third_party/guava_license.txt
280[gwt]: third_party/gwt_license.txt
281[jquery]: third_party/jquery_license.txt
282[lombok]: third_party/testdata/lombok_license.txt
283[qunit]: third_party/qunit_license.txt
284[rhino]: third_party/rhino_LICENSE.txt
285[rxjava]: third_party/testdata/rxjava_license.txt
286[spring]: third_party/testdata/spring_license.txt
287[assemblyscript]: third_party/assemblyscript_license.txt
288