README.md 14.0 KB
Newer Older
1
The Apache 2 license (given in full in [LICENSE.txt](LICENSE.txt)) applies to all code in this repository which is copyright
D
Dmitry Jemerov 已提交
2 3 4 5 6
by JetBrains. The following sections of the repository contain third-party code, to which different licenses
may apply:

## Kotlin Compiler

7
The following modules contain third-party code and are incorporated into the Kotlin compiler and/or
D
Dmitry Jemerov 已提交
8 9 10
the Kotlin IntelliJ IDEA plugin:

 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/inline/MaxStackFrameSizeAndLocalsCalculator.java
D
Derek Schaller 已提交
11
     - License: BSD ([license/third_party/asm_license.txt][asm])
D
Dmitry Jemerov 已提交
12 13
     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom

14
 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/inline/MaxLocalsCalculator.java
D
Derek Schaller 已提交
15
     - License: BSD ([license/third_party/asm_license.txt][asm])
16 17
     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom

D
Dmitry Jemerov 已提交
18
 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/MethodAnalyzer.kt
D
Derek Schaller 已提交
19
     - License: BSD ([license/third_party/asm_license.txt][asm])
D
Dmitry Jemerov 已提交
20 21 22
     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom

 - Path: core/reflection.jvm/src/kotlin.reflect/jvm/internal/pcollections
D
Derek Schaller 已提交
23
     - License: MIT ([license/third_party/pcollections_LICENSE.txt][pcollections])
D
Dmitry Jemerov 已提交
24
     - Origin: Derived from PCollections, A Persistent Java Collections Library (https://pcollections.org/)
25

26
 - Path: eval4j/src/org/jetbrains/eval4j/interpreterLoop.kt
D
Derek Schaller 已提交
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
D
Derek Schaller 已提交
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
D
Derek Schaller 已提交
35
     - License: BSD ([license/third_party/dart_LICENSE.txt][dart])
D
Dmitry Jemerov 已提交
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
D
Derek Schaller 已提交
39
     - License: BSD ([license/third_party/dart_LICENSE.txt][dart])
D
Dmitry Jemerov 已提交
40
     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
41

D
Dmitry Jemerov 已提交
42
 - Path: js/js.parser/src/com/google
D
Derek Schaller 已提交
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
D
Dmitry Jemerov 已提交
45 46
        is derived from Rhino, (C) 1997-1999 Netscape Communications Corporation, distributed under the
        Netscape Public License.
47

D
Dmitry Jemerov 已提交
48
 - Path: js/js.translator/qunit/qunit.js
D
Derek Schaller 已提交
49
      - License: MIT ([license/third_party/qunit_license.txt][qunit])
D
Dmitry Jemerov 已提交
50
      - Origin: QUnit, Copyright (c) 2012 John Resig, Jörn Zaefferer,
51

D
Dmitry Jemerov 已提交
52
 - Path: libraries/stdlib/src/kotlin/collections
D
Derek Schaller 已提交
53
      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
D
Dmitry Jemerov 已提交
54
      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
55

56 57 58 59
 - Path: libraries/stdlib/unsigned/src/kotlin/UnsignedUtils.kt
      - License: Apache 2 ([license/third_party/guava_license.txt][guava])
      - Origin: Derived from Guava's UnsignedLongs, (C) 2011 The Guava Authors

60
 - Path: libraries/stdlib/jvm/src/kotlin/util/MathJVM.kt
D
Derek Schaller 已提交
61
      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
62 63
      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.

64
 - Path: libraries/stdlib/js/src/kotlin/collections
D
Derek Schaller 已提交
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
D
Derek Schaller 已提交
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
D
Derek Schaller 已提交
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

D
Dmitry Jemerov 已提交
76
 - Path: plugins/lint/android-annotations
D
Derek Schaller 已提交
77
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
78 79 80
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

 - Path: plugins/lint/lint-api
D
Derek Schaller 已提交
81
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
82 83 84
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

 - Path: plugins/lint/lint-checks
D
Derek Schaller 已提交
85
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
86 87 88
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

 - Path: plugins/lint/lint-idea
D
Derek Schaller 已提交
89
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
90
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
91
          
S
Svyatoslav Kuzmich 已提交
92 93 94
 - Path: wasm/ir/src/org/jetbrains/kotlin/wasm/ir/convertors
      - License: MIT ([license/third_party/asmble_license.txt][asmble])
      - Origin: Copyright (C) 2018 Chad Retz
95 96 97 98

 - Path: compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/ComposeLikeGenerationExtension.kt
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
      - Origin: Derived from JetPack Compose compiler plugin code, Copyright 2019 The Android Open Source Project
D
Dmitry Jemerov 已提交
99 100 101

## Kotlin Test Data

102
The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into
D
Dmitry Jemerov 已提交
103 104
any distributions of the compiler, libraries or plugin:

105
 - Path: third-party/annotations/android
D
Derek Schaller 已提交
106
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
107 108
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

109
 - Path: third-party/annotations/com/android
D
Derek Schaller 已提交
110
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
111 112
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

113
 - Path: third-party/annotations/org/eclipse
D
Derek Schaller 已提交
114
      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
115
      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
D
Dmitry Jemerov 已提交
116

117
 - Path: third-party/annotations/androidx
D
Derek Schaller 已提交
118
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
119 120
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

121
 - Path: third-party/annotations/edu/umd/cs/findbugs
D
Derek Schaller 已提交
122
      - License: LGPL 2.1 ([license/third_party/testdata/findbugs_license.txt][findbugs])
123 124
      - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland

125
 - Path: third-party/jdk8-annotations/org/eclipse
D
Derek Schaller 已提交
126
      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
127
      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
D
Dmitry Jemerov 已提交
128

129
 - Path: third-party/annotations/io/reactivex
D
Derek Schaller 已提交
130
      - License: Apache 2 ([license/third_party/testdata/rxjava_license.txt][rxjava])
131 132
      - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors

133
 - Path: third-party/annotations/lombok
D
Derek Schaller 已提交
134
      - License: MIT ([license/third_party/testdata/lombok_license.txt][lombok])
135 136
      - Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors

D
Dmitry Jemerov 已提交
137
 - Path: idea/idea-android/tests/org/jetbrains/kotlin/android/AndroidTestBase.java
D
Derek Schaller 已提交
138
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
139
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
140

D
Dmitry Jemerov 已提交
141
 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java
D
Derek Schaller 已提交
142
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
D
Dmitry Jemerov 已提交
143
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
144

145
 - Path: idea/testData/android/lint/IntRange.java
D
Derek Schaller 已提交
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: idea/testData/android/lint/RequiresPermission.java
D
Derek Schaller 已提交
150
      - License: Apache 2 ([license/third_party/aosp_license.txt][aosp])
151
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
152

D
Dmitry Jemerov 已提交
153
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
D
Derek Schaller 已提交
154
      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
D
Dmitry Jemerov 已提交
155 156 157
      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.

 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject
D
Derek Schaller 已提交
158
      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
D
Dmitry Jemerov 已提交
159 160 161
      - Origin: Dagger, Copyright (C) 2013 Square, Inc.

 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2
D
Derek Schaller 已提交
162
      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
D
Dmitry Jemerov 已提交
163
      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
164

D
Dmitry Jemerov 已提交
165
 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java
D
Derek Schaller 已提交
166
      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
D
Dmitry Jemerov 已提交
167 168
      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.

S
Sergey Igushkin 已提交
169 170
## Kotlin Tools and Libraries Tests

171
The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into
S
Sergey Igushkin 已提交
172 173 174
any distributions of the tools or libraries:

 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/PluginsDslIT.kt
175
      - License: Apache 2 ([license/third_party/gradle_license.txt][gradle])
176
      - Origin: Gradle, Copyright 2002-2017 Gradle, Inc.
S
Sergey Igushkin 已提交
177

178
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java
D
Derek Schaller 已提交
179 180
      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
181 182
      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.

183
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java
D
Derek Schaller 已提交
184 185
      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
186
      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
187

188
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Embeddable.java
D
Derek Schaller 已提交
189 190
      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
             and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution])
191
      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
192 193 194 195 196 197
      
 - Path: libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js
      - License: MIT ([license/third_party/karma_LICENSE.txt](third_party/karma_LICENSE.txt)
             and [license/third_party/karma-teamcity-reporter_LICENSE.txt](third_party/karma-teamcity-reporter_LICENSE.txt))
      - Origin: Copyright (C) 2011-2019 Google, Inc. and Copyright (C) 2011-2013 Vojta Jína and contributors.
      
198 199 200 201
 - Path: libraries/tools/kotlin-test-js-runner/mocha-kotlin-reporter.js
      - License: MIT ([license/third_party/mocha-teamcity-reporter_LICENSE.txt](third_party/mocha-teamcity-reporter_LICENSE.txt))
      - Origin: Copyright (c) 2016 Jamie Sherriff
      
202 203 204 205 206
 - Path: libraries/tools/kotlin-test-js-runner/src/utils.ts
      - License: MIT ([license/third_party/teamcity-service-messages_LICENSE.txt](third_party/teamcity-service-messages_LICENSE.txt)
             and [license/third_party/lodash_LICENSE.txt](third_party/lodash_LICENSE.txt))
      - Origin: Copyright (c) 2013 Aaron Forsander and Copyright JS Foundation and other contributors <https://js.foundation/>
      
207 208 209 210
 - Path: libraries/tools/kotlin-test-js-runner/src/teamcity-format.js
      - License: MIT ([license/third_party/mocha-teamcity-reporter_LICENSE.txt](third_party/mocha-teamcity-reporter_LICENSE.txt)
             and [license/third_party/teamcity-service-messages_LICENSE.txt](third_party/teamcity-service-messages_LICENSE.txt))
      - Origin: Copyright (c) 2016 Jamie Sherriff and Copyright (c) 2013 Aaron Forsander
211

D
Dmitry Jemerov 已提交
212 213
## Example Code

214
The following code is provided as examples and is not incorporated into
D
Dmitry Jemerov 已提交
215 216 217
any distributions of the compiler, libraries or plugin:

 - Path: libraries/examples/browser-example/src/js/jquery.js
D
Derek Schaller 已提交
218
      - License: MIT ([license/third_party/jquery_license.txt][jquery])
D
Dmitry Jemerov 已提交
219
      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
220

D
Dmitry Jemerov 已提交
221
 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js
D
Derek Schaller 已提交
222
      - License: MIT ([license/third_party/jquery_license.txt][jquery])
D
Dmitry Jemerov 已提交
223
      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
D
Derek Schaller 已提交
224 225 226 227 228 229 230 231 232 233

[aosp]: third_party/aosp_license.txt
[asm]: third_party/asm_license.txt
[boost]: third_party/boost_LICENSE.txt
[closure-compiler]: third_party/closure-compiler_LICENSE.txt
[dagger]: third_party/testdata/dagger_license.txt
[dart]: third_party/dart_LICENSE.txt
[eclipse]: third_party/testdata/eclipse_license.txt
[eclipse-distribution]: third_party/testdata/eclipse_distribution_license.txt
[findbugs]: third_party/testdata/findbugs_license.txt
234
[gradle]: third_party/gradle_license.txt
235
[guava]: third_party/guava_license.txt
D
Derek Schaller 已提交
236 237 238 239 240 241 242 243
[gwt]: third_party/gwt_license.txt
[jquery]: third_party/jquery_license.txt
[lombok]: third_party/testdata/lombok_license.txt
[pcollections]: third_party/pcollections_LICENSE.txt
[qunit]: third_party/qunit_license.txt
[rhino]: third_party/rhino_LICENSE.txt
[rxjava]: third_party/testdata/rxjava_license.txt
[spring]: third_party/testdata/spring_license.txt