README.md 11.8 KB
Newer Older
D
Dmitry Jemerov 已提交
1 2 3 4 5 6
The Apache 2 license (given in full in LICENSE.txt) applies to all code in this repository which is copyright
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
 - Path: libraries/stdlib/jvm/src/kotlin/util/MathJVM.kt
D
Derek Schaller 已提交
57
      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
58 59
      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.

60
 - Path: libraries/stdlib/js/src/kotlin/collections
D
Derek Schaller 已提交
61
      - License: Apache 2 ([license/third_party/gwt_license.txt][gwt])
62
      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
63

64
 - Path: libraries/stdlib/js/src/js/long.js
D
Derek Schaller 已提交
65
      - License: Apache 2 ([license/third_party/closure-compiler_LICENSE.txt][closure-compiler])
66
      - Origin: Google Closure Library, Copyright 2009 The Closure Library Authors
67

68
 - Path: libraries/stdlib/js/src/js/polyfills.js
D
Derek Schaller 已提交
69
      - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost])
70
      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
71

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

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

## Kotlin Test Data

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

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

97
 - Path: third-party/annotations/com/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/org/eclipse
D
Derek Schaller 已提交
102
      - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse])
103
      - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
D
Dmitry Jemerov 已提交
104

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

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

113
 - Path: third-party/jdk8-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/io/reactivex
D
Derek Schaller 已提交
118
      - License: Apache 2 ([license/third_party/testdata/rxjava_license.txt][rxjava])
119 120
      - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors

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

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

D
Dmitry Jemerov 已提交
129
 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.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

133
 - Path: idea/testData/android/lint/IntRange.java
D
Derek Schaller 已提交
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/RequiresPermission.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

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

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

D
Dmitry Jemerov 已提交
153
 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/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
      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.

S
Sergey Igushkin 已提交
157 158
## Kotlin Tools and Libraries Tests

159
The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into
S
Sergey Igushkin 已提交
160 161 162
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 已提交
163
      - License: Apache 2 ([license/third_party/testdata/gradle_license.txt][gradle])
164
      - Origin: Gradle, Copyright 2002-2017 Gradle, Inc.
S
Sergey Igushkin 已提交
165

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

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

176
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Embeddable.java
D
Derek Schaller 已提交
177 178
      - 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])
179
      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
180

D
Dmitry Jemerov 已提交
181 182
## Example Code

183
The following code is provided as examples and is not incorporated into
D
Dmitry Jemerov 已提交
184 185 186
any distributions of the compiler, libraries or plugin:

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

D
Dmitry Jemerov 已提交
190
 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js
D
Derek Schaller 已提交
191
      - License: MIT ([license/third_party/jquery_license.txt][jquery])
D
Dmitry Jemerov 已提交
192
      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
D
Derek Schaller 已提交
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211

[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
[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