README.md 13.8 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 91 92 93
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

## Kotlin Test Data

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

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

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

105
 - Path: third-party/annotations/org/eclipse
D
Derek Schaller 已提交
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.
D
Dmitry Jemerov 已提交
108

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

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

117
 - Path: third-party/jdk8-annotations/org/eclipse
D
Derek Schaller 已提交
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.
D
Dmitry Jemerov 已提交
120

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

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

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

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

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

D
Dmitry Jemerov 已提交
145
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
D
Derek Schaller 已提交
146
      - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring])
D
Dmitry Jemerov 已提交
147 148 149
      - 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 已提交
150
      - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger])
D
Dmitry Jemerov 已提交
151 152 153
      - Origin: Dagger, Copyright (C) 2013 Square, Inc.

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

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

S
Sergey Igushkin 已提交
161 162
## Kotlin Tools and Libraries Tests

163
The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into
S
Sergey Igushkin 已提交
164 165 166
any distributions of the tools or libraries:

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

170
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java
D
Derek Schaller 已提交
171 172
      - 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])
173 174
      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.

175
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java
D
Derek Schaller 已提交
176 177
      - 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])
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
D
Derek Schaller 已提交
181 182
      - 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])
183
      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
184 185 186 187 188 189
      
 - 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.
      
190 191 192 193
 - 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
      
194 195 196 197 198
 - 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/>
      
199 200 201 202 203
 - 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
      
204 205 206
 - Path: libraries/tools/kotlin-source-map-loader/kotlin-source-map-loader.js
      - License: MIT ([license/third_party/source-map-loader_LICENSE.txt](third_party/source-map-loader_LICENSE.txt))
      - Origin: Copyright JS Foundation and other contributors
207

D
Dmitry Jemerov 已提交
208 209
## Example Code

210
The following code is provided as examples and is not incorporated into
D
Dmitry Jemerov 已提交
211 212 213
any distributions of the compiler, libraries or plugin:

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

D
Dmitry Jemerov 已提交
217
 - Path: libraries/examples/browser-example-with-library/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
D
Derek Schaller 已提交
220 221 222 223 224 225 226 227 228 229 230

[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
[gradle]: third_party/testdata/gradle_license.txt
231
[guava]: third_party/guava_license.txt
D
Derek Schaller 已提交
232 233 234 235 236 237 238 239
[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