1 The Apache 2 license (given in full in LICENSE.txt) applies to all code in this repository which is copyright 2 by JetBrains. The following sections of the repository contain third-party code, to which different licenses 3 may apply: 4 5 ## Kotlin Compiler 6 7 The following modules contain third-party code and are incorporated into the Kotlin compiler and/or 8 the 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][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/MethodAnalyzer.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: core/reflection.jvm/src/kotlin.reflect/jvm/internal/pcollections 23 - License: MIT ([license/third_party/pcollections_LICENSE.txt][pcollections]) 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][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 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 35 - License: BSD ([license/third_party/dart_LICENSE.txt][dart]) 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][dart]) 40 - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors, 41 42 - Path: js/js.parser/src/com/google 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 45 is derived from Rhino, (C) 1997-1999 Netscape Communications Corporation, distributed under the 46 Netscape Public License. 47 48 - Path: js/js.translator/qunit/qunit.js 49 - License: MIT ([license/third_party/qunit_license.txt][qunit]) 50 - Origin: QUnit, Copyright (c) 2012 John Resig, Jrn Zaefferer, 51 52 - Path: libraries/stdlib/src/kotlin/collections 53 - License: Apache 2 ([license/third_party/gwt_license.txt][gwt]) 54 - Origin: Derived from GWT, (C) 2007-08 Google Inc. 55 56 - Path: libraries/stdlib/unsigned/src/kotlin/UnsignedUtils.kt 57 - License: Apache 2 ([license/third_party/guava_license.txt][guava]) 58 - Origin: Derived from Guava's UnsignedLongs, (C) 2011 The Guava Authors 59 60 - Path: libraries/stdlib/jvm/src/kotlin/util/MathJVM.kt 61 - License: Boost Software License 1.0 ([license/third_party/boost_LICENSE.txt][boost]) 62 - Origin: Derived from boost special math functions, Copyright Eric Ford & Hubert Holin 2001. 63 64 - Path: libraries/stdlib/js/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/js/long.js 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/src/js/polyfills.js 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 76 - Path: plugins/lint/android-annotations 77 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 78 - Origin: Copyright (C) 2011-15 The Android Open Source Project 79 80 - Path: plugins/lint/lint-api 81 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 82 - Origin: Copyright (C) 2011-15 The Android Open Source Project 83 84 - Path: plugins/lint/lint-checks 85 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 86 - Origin: Copyright (C) 2011-15 The Android Open Source Project 87 88 - Path: plugins/lint/lint-idea 89 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 90 - Origin: Copyright (C) 2011-15 The Android Open Source Project 91 92 ## Kotlin Test Data 93 94 The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into 95 any distributions of the compiler, libraries or plugin: 96 97 - Path: third-party/annotations/android 98 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 99 - Origin: Copyright (C) 2011-15 The Android Open Source Project 100 101 - Path: third-party/annotations/com/android 102 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 103 - Origin: Copyright (C) 2011-15 The Android Open Source Project 104 105 - Path: third-party/annotations/org/eclipse 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. 108 109 - Path: third-party/annotations/androidx 110 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 111 - Origin: Copyright (C) 2011-15 The Android Open Source Project 112 113 - Path: third-party/annotations/edu/umd/cs/findbugs 114 - License: LGPL 2.1 ([license/third_party/testdata/findbugs_license.txt][findbugs]) 115 - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland 116 117 - Path: third-party/jdk8-annotations/org/eclipse 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. 120 121 - Path: third-party/annotations/io/reactivex 122 - License: Apache 2 ([license/third_party/testdata/rxjava_license.txt][rxjava]) 123 - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors 124 125 - Path: third-party/annotations/lombok 126 - License: MIT ([license/third_party/testdata/lombok_license.txt][lombok]) 127 - Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors 128 129 - Path: idea/idea-android/tests/org/jetbrains/kotlin/android/AndroidTestBase.java 130 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 131 - Origin: Copyright (C) 2011-15 The Android Open Source Project 132 133 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java 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/IntRange.java 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 142 - License: Apache 2 ([license/third_party/aosp_license.txt][aosp]) 143 - Origin: Copyright (C) 2011-15 The Android Open Source Project 144 145 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java 146 - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring]) 147 - Origin: Spring Framework, Copyright 2002-2007 the original author or authors. 148 149 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject 150 - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger]) 151 - Origin: Dagger, Copyright (C) 2013 Square, Inc. 152 153 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2 154 - License: Apache 2 ([license/third_party/testdata/dagger_license.txt][dagger]) 155 - Origin: Dagger, Copyright (C) 2013 Square, Inc. 156 157 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java 158 - License: Apache 2 ([license/third_party/testdata/spring_license.txt][spring]) 159 - Origin: Spring Framework, Copyright 2002-2007 the original author or authors. 160 161 ## Kotlin Tools and Libraries Tests 162 163 The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into 164 any distributions of the tools or libraries: 165 166 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/PluginsDslIT.kt 167 - License: Apache 2 ([license/third_party/testdata/gradle_license.txt][gradle]) 168 - Origin: Gradle, Copyright 2002-2017 Gradle, Inc. 169 170 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java 171 - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse]) 172 and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution]) 173 - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation. 174 175 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java 176 - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse]) 177 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 181 - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse]) 182 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 ## Example Code 186 187 The following code is provided as examples and is not incorporated into 188 any distributions of the compiler, libraries or plugin: 189 190 - Path: libraries/examples/browser-example/src/js/jquery.js 191 - License: MIT ([license/third_party/jquery_license.txt][jquery]) 192 - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig 193 194 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js 195 - License: MIT ([license/third_party/jquery_license.txt][jquery]) 196 - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig 197 198 [aosp]: third_party/aosp_license.txt 199 [asm]: third_party/asm_license.txt 200 [boost]: third_party/boost_LICENSE.txt 201 [closure-compiler]: third_party/closure-compiler_LICENSE.txt 202 [dagger]: third_party/testdata/dagger_license.txt 203 [dart]: third_party/dart_LICENSE.txt 204 [eclipse]: third_party/testdata/eclipse_license.txt 205 [eclipse-distribution]: third_party/testdata/eclipse_distribution_license.txt 206 [findbugs]: third_party/testdata/findbugs_license.txt 207 [gradle]: third_party/testdata/gradle_license.txt 208 [guava]: third_party/guava_license.txt 209 [gwt]: third_party/gwt_license.txt 210 [jquery]: third_party/jquery_license.txt 211 [lombok]: third_party/testdata/lombok_license.txt 212 [pcollections]: third_party/pcollections_LICENSE.txt 213 [qunit]: third_party/qunit_license.txt 214 [rhino]: third_party/rhino_LICENSE.txt 215 [rxjava]: third_party/testdata/rxjava_license.txt 216 [spring]: third_party/testdata/spring_license.txt 217