• Home
Name Date Size #Lines LOC

..--

third_party/04-Jul-2025-6,4755,300

COPYRIGHT.txtD04-Jul-2025647 1615

COPYRIGHT_HEADER.txtD04-Jul-2025208 44

LICENSE.txtD04-Jul-202511.1 KiB203169

NOTICE.txtD04-Jul-2025482 97

README.mdD04-Jul-202516.6 KiB298227

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.kt
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/js/src/kotlin/UnsignedJs.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/UnsignedJVM.kt
73      - License: Apache 2 ([license/third_party/guava_license.txt][guava])
74      - Origin: Derived from Guava's UnsignedLongs, (C) 2011 The Guava Authors
75
76 - Path: kotlin-native/runtime/src/main/kotlin/kotlin/Unsigned.kt
77      - License: Apache 2 ([license/third_party/guava_license.txt][guava])
78      - Origin: Derived from Guava's UnsignedLongs, (C) 2011 The Guava Authors
79
80 - Path: libraries/stdlib/jvm/src/kotlin/util/MathJVM.kt
81      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
82      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
83
84 - Path: libraries/stdlib/js/src/kotlin/collections
85      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
86      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
87
88 - Path: libraries/stdlib/native-wasm/src/kotlin/collections
89      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
90      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
91
92 - Path: libraries/stdlib/js/runtime/longJs.kt
93      - License: Apache 2 ([license/third_party/closure-compiler_LICENSE.txt][closure-compiler])
94      - Origin: Google Closure Library, Copyright 2009 The Closure Library Authors
95
96 - Path: libraries/stdlib/js/src/kotlin/js/math.polyfills.kt
97      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
98      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
99
100 - Path: libraries/stdlib/wasm/internal/kotlin/wasm/internal/Number2String.kt
101      - License: Apache 2 ([license/third_party/assemblyscript_license.txt][assemblyscript])
102      - Origin: Derived from assemblyscript standard library
103
104 - Path: libraries/tools/kotlin-power-assert
105      - License: Apache 2 ([license/third_party/power_assert_license.txt][power-assert])
106      - Origin: Copyright (C) 2020-2023 Brian Norman
107
108 - Path: plugins/compose
109      - License: Apache 2 ([license/third_party/compose_license.txt][compose])
110      - Origin: Copyright 2019-2024 The Android Open Source Project
111
112 - Path: plugins/lint/android-annotations
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: plugins/lint/lint-api
117      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
118      - Origin: Copyright (C) 2011-15 The Android Open Source Project
119
120 - Path: plugins/lint/lint-checks
121      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
122      - Origin: Copyright (C) 2011-15 The Android Open Source Project
123
124 - Path: plugins/lint/lint-idea
125      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
126      - Origin: Copyright (C) 2011-15 The Android Open Source Project
127
128 - Path: plugins/power-assert
129      - License: Apache 2 ([license/third_party/power_assert_license.txt][power-assert])
130      - Origin: Copyright (C) 2020-2023 Brian Norman
131
132 - Path: wasm/ir/src/org/jetbrains/kotlin/wasm/ir/convertors
133      - License: MIT ([license/third_party/asmble_license.txt][asmble])
134      - Origin: Copyright (C) 2018 Chad Retz
135
136 - Path: compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/ComposeLikeGenerationExtension.kt
137      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
138      - Origin: Derived from JetPack Compose compiler plugin code, Copyright 2019 The Android Open Source Project
139
140 - Path: libraries/stdlib/wasm/src/kotlin/text/FloatingPointConverter.kt
141   - License: MIT ([license/third_party/asmble_license.txt][asmble])
142   - Origin: Copyright (C) 2018 Chad Retz
143
144 - Path: libraries/stdlib/wasm/src/kotlin/math/fdlibm/
145   - License: SUN ([license/third_party/sun_license.txt][sun])
146   - Origin: Copyright (C) 1993 by Sun Microsystems, Inc.
147
148 - Path: kotlin-native/runtime/src/main/cpp/Utils.cpp
149   - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
150   - Origin: Derived from boost hash functions, Copyright 2005-2014 Daniel James
151
152## Kotlin Test Data
153
154The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into
155any distributions of the compiler, libraries or plugin:
156
157 - Path: third-party/annotations/android
158      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
159      - Origin: Copyright (C) 2011-15 The Android Open Source Project
160
161 - Path: third-party/annotations/com/android
162      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
163      - Origin: Copyright (C) 2011-15 The Android Open Source Project
164
165 - Path: third-party/annotations/org/eclipse
166      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
167      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
168
169 - Path: third-party/annotations/androidx
170      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
171      - Origin: Copyright (C) 2011-15 The Android Open Source Project
172
173 - Path: third-party/annotations/edu/umd/cs/findbugs
174      - License: LGPL 2.1 ([license/third_party/testdata/findbugs_license.txt][findbugs])
175      - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland
176
177 - Path: third-party/java8-annotations/org/eclipse
178      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
179      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
180
181 - Path: third-party/annotations/io/reactivex
182      - License: Apache 2 ([license/third_party/testdata/rxjava_license.txt][rxjava])
183      - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors
184
185 - Path: third-party/java8-annotations/org/jspecify
186      - License: Apache 2 ([license/third_party/testdata/jspecify_license.txt][jspecify])
187      - Origin: JSpecify, Copyright (C) 2020 The JSpecify Authors
188
189 - Path: third-party/java9-annotations/org/jspecify
190      - License: Apache 2 ([license/third_party/testdata/jspecify_license.txt][jspecify])
191      - Origin: JSpecify, Copyright (C) 2020 The JSpecify Authors
192
193 - Path: third-party/annotations/lombok
194      - License: MIT ([license/third_party/testdata/lombok_license.txt][lombok])
195      - Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors
196
197 - Path: idea/idea-android/tests/org/jetbrains/kotlin/android/AndroidTestBase.java
198      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
199      - Origin: Copyright (C) 2011-15 The Android Open Source Project
200
201 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java
202      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
203      - Origin: Copyright (C) 2011-15 The Android Open Source Project
204
205 - Path: idea/testData/android/lint/IntRange.java
206      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
207      - Origin: Copyright (C) 2011-15 The Android Open Source Project
208
209 - Path: idea/testData/android/lint/RequiresPermission.java
210      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
211      - Origin: Copyright (C) 2011-15 The Android Open Source Project
212
213 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
214      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
215      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
216
217 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject
218      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
219      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
220
221 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2
222      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
223      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
224
225 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java
226      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
227      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
228
229## Kotlin Tools and Libraries Tests
230
231The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into
232any distributions of the tools or libraries:
233
234 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/PluginsDslIT.kt
235      - License: Apache 2 ([license/third_party/gradle_license.txt][gradle])
236      - Origin: Gradle, Copyright 2002-2017 Gradle, Inc.
237
238 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java
239      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
240             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
241      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
242
243 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java
244      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
245             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
246      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
247
248 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Embeddable.java
249      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
250             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
251      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
252
253 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/powerAssertSimple
254      - License: Apache 2 ([license/third_party/power_assert_license.txt][power-assert])
255      - Origin: Copyright (C) 2020-2023 Brian Norman
256
257 - Path: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/nodejs/Platform.kt
258      - License: Apache License 2.0 ([license/third_party/gradle-node-plugin_LICENSE.txt](third_party/gradle-node-plugin_LICENSE.txt))
259      - Origin: Copyright (c) 2013 node-gradle/gradle-node-plugin
260
261## Example Code
262
263The following code is provided as examples and is not incorporated into
264any distributions of the compiler, libraries or plugin:
265
266 - Path: libraries/examples/browser-example/src/js/jquery.js
267      - License: MIT ([license/third_party/jquery_license.txt][jquery])
268      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
269
270 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js
271      - License: MIT ([license/third_party/jquery_license.txt][jquery])
272      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
273
274[aosp]: third_party/aosp_license.txt
275[asm]: third_party/asm_license.txt
276[asmble]: third_party/asmble_license.txt
277[assemblyscript]: third_party/assemblyscript_license.txt
278[boost]: third_party/boost_LICENSE.txt
279[closure-compiler]: third_party/closure-compiler_LICENSE.txt
280[compose]: third_party/compose_license.txt
281[dagger]: third_party/testdata/dagger_license.txt
282[dart]: third_party/dart_LICENSE.txt
283[eclipse]: third_party/testdata/eclipse_license.txt
284[eclipse-distribution]: third_party/testdata/eclipse_distribution_license.txt
285[findbugs]: third_party/testdata/findbugs_license.txt
286[gradle]: third_party/gradle_license.txt
287[guava]: third_party/guava_license.txt
288[gwt]: third_party/gwt_license.txt
289[jquery]: third_party/jquery_license.txt
290[jspecify]: third_party/testdata/jspecify_license.txt
291[lombok]: third_party/testdata/lombok_license.txt
292[power-assert]: third_party/power_assert_license.txt
293[qunit]: third_party/qunit_license.txt
294[rhino]: third_party/rhino_LICENSE.txt
295[rxjava]: third_party/testdata/rxjava_license.txt
296[spring]: third_party/testdata/spring_license.txt
297[sun]: third_party/sun_license.txt
298