• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1The Apache 2 license (given in full in 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)
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)
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/MethodAnalyzer.kt
19     - License: BSD (license/third_party/asm_license.txt)
20     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom
21
22 - Path: core/reflection.jvm/src/kotlin.reflect/jvm/internal/pcollections
23     - License: MIT (license/third_party/pcollections_LICENSE.txt)
24     - Origin: Derived from PCollections, A Persistent Java Collections Library (https://pcollections.org/)
25
26 - Path: eval4j/src/org/jetbrains/eval4j/interpreterLoop.kt
27     - License: BSD (license/third_party/asm_license.txt)
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
31     - License: BSD (license/third_party/asm_license.txt)
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
35     - License: BSD (license/third_party/dart_LICENSE.txt)
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
39     - License: BSD (license/third_party/dart_LICENSE.txt)
40     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
41
42 - Path: js/js.libraries/src/core/collections
43      - License: Apache 2 (license/third_party/gwt_license.txt)
44      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
45
46 - Path: js/js.libraries/src/js/long.js
47      - License: Apache 2 (license/third_party/closure-compiler_LICENSE.txt)
48      - Origin: Google Closure Library, Copyright 2009 The Closure Library Authors
49
50 - Path: js/js.libraries/src/js/polyfills.js
51      - License: Boost Software License 1.0 (license/third_party/boost_LICENSE.txt)
52      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
53
54 - Path: js/js.parser/src/com/google
55      - License: Netscape Public License 1.1 (license/third_party/rhino_LICENSE.txt)
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)
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)
66      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
67
68 - Path: libraries/stdlib/src/kotlin/util/MathJVM.kt
69      - License: Boost Software License 1.0 (license/third_party/boost_LICENSE.txt)
70      - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001.
71
72 - Path: plugins/lint/android-annotations
73      - License: Apache 2 (license/third_party/aosp_license.txt)
74      - Origin: Copyright (C) 2011-15 The Android Open Source Project
75
76 - Path: plugins/lint/lint-api
77      - License: Apache 2 (license/third_party/aosp_license.txt)
78      - Origin: Copyright (C) 2011-15 The Android Open Source Project
79
80 - Path: plugins/lint/lint-checks
81      - License: Apache 2 (license/third_party/aosp_license.txt)
82      - Origin: Copyright (C) 2011-15 The Android Open Source Project
83
84 - Path: plugins/lint/lint-idea
85      - License: Apache 2 (license/third_party/aosp_license.txt)
86      - Origin: Copyright (C) 2011-15 The Android Open Source Project
87
88## Kotlin Test Data
89
90The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into
91any distributions of the compiler, libraries or plugin:
92
93 - Path: third-party/annotations/android
94      - License: Apache 2 (license/third_party/aosp_license.txt)
95      - Origin: Copyright (C) 2011-15 The Android Open Source Project
96
97 - Path: third-party/annotations/com/android
98      - License: Apache 2 (license/third_party/aosp_license.txt)
99      - Origin: Copyright (C) 2011-15 The Android Open Source Project
100
101 - Path: third-party/annotations/org/eclipse
102       - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
103       - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
104
105 - Path: third-party/annotations/edu/umd/cs/findbugs
106       - License: LGPL 2.1 (license/third_party/testdata/findbugs_license.txt)
107       - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland
108
109 - Path: third-party/jdk8-annotations/org/eclipse
110       - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
111       - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
112
113 - Path: third-party/annotations/io/reactivex
114       - License: Apache 2 (license/third_party/testdata/rxjava_license.txt)
115       - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors
116
117 - Path: third-party/annotations/lombok
118       - License: MIT (license/third_party/testdata/lombok_license.txt)
119       - Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors
120
121 - Path: idea/idea-android/tests/org/jetbrains/kotlin/android/AndroidTestBase.java
122      - License: Apache 2 (license/third_party/aosp_license.txt)
123      - Origin: Copyright (C) 2011-15 The Android Open Source Project
124
125 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java
126      - License: Apache 2 (license/third_party/aosp_license.txt)
127      - Origin: Copyright (C) 2011-15 The Android Open Source Project
128
129 - Path: idea/testData/android/lint/IntRange.java
130      - License: Apache 2 (license/third_party/aosp_license.txt)
131      - Origin: Copyright (C) 2011-15 The Android Open Source Project
132
133 - Path: idea/testData/android/lint/RequiresPermission.java
134      - License: Apache 2 (license/third_party/aosp_license.txt)
135      - Origin: Copyright (C) 2011-15 The Android Open Source Project
136
137 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
138      - License: Apache 2 (license/third_party/testdata/spring_license.txt)
139      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
140
141 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject
142      - License: Apache 2 (license/third_party/testdata/dagger_license.txt)
143      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
144
145 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2
146      - License: Apache 2 (license/third_party/testdata/dagger_license.txt)
147      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
148
149 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java
150      - License: Apache 2 (license/third_party/testdata/spring_license.txt)
151      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.
152
153## Kotlin Tools and Libraries Tests
154
155The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into
156any distributions of the tools or libraries:
157
158 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/PluginsDslIT.kt
159      - License: Apache 2 (license/third_party/testdata/gradle_license.txt)
160      - Origin: Gradle, Copyright 2002-2017 Gradle, Inc.
161
162 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java
163      - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
164             and Eclipse Distribution License - v1.0 (license/third_party/testdata/eclipse_distribution_license.txt)
165      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
166
167 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java
168      - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
169             and Eclipse Distribution License - v1.0 (license/third_party/testdata/eclipse_distribution_license.txt)
170      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
171
172 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Embeddable.java
173      - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
174             and Eclipse Distribution License - v1.0 (license/third_party/testdata/eclipse_distribution_license.txt)
175      - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation.
176
177## Example Code
178
179The following code is provided as examples and is not incorporated into
180any distributions of the compiler, libraries or plugin:
181
182 - Path: libraries/examples/browser-example/src/js/jquery.js
183      - License: MIT (license/third_party/jquery_license.txt)
184      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
185
186 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js
187      - License: MIT (license/third_party/jquery_license.txt)
188      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
189