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:
The following modules contain third-party code and are incorporated into the Kotlin compiler and/or the Kotlin IntelliJ IDEA plugin:
Path: compiler/backend/src/org/jetbrains/kotlin/codegen/inline/MaxStackFrameSizeAndLocalsCalculator.java
Path: compiler/backend/src/org/jetbrains/kotlin/codegen/inline/MaxLocalsCalculator.java
Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/MethodAnalyzer.kt
Path: core/reflection.jvm/src/kotlin.reflect/jvm/internal/pcollections
Path: eval4j/src/org/jetbrains/eval4j/interpreterLoop.kt
Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/OptimizationBasicInterpreter.java
Path: js/js.ast
Path: js/js.inliner/src/org/jetbrains/kotlin/js/inline/FunctionInlineMutator.kt
Path: js/js.parser/src/com/google
Path: js/js.translator/qunit/qunit.js
Path: libraries/stdlib/src/kotlin/collections
Path: libraries/stdlib/src/kotlin/util/MathJVM.kt
Path: libraries/stdlib/js/src/kotlin/collections
Path: libraries/stdlib/js/src/js/long.js
Path: libraries/stdlib/js/src/js/polyfills.js
Path: plugins/lint/android-annotations
Path: plugins/lint/lint-api
Path: plugins/lint/lint-checks
Path: plugins/lint/lint-idea
The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into any distributions of the compiler, libraries or plugin:
Path: third-party/annotations/android
Path: third-party/annotations/com/android
Path: third-party/annotations/org/eclipse - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt) - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
Path: third-party/annotations/androidx
Path: third-party/annotations/edu/umd/cs/findbugs - License: LGPL 2.1 (license/third_party/testdata/findbugs_license.txt) - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland
Path: third-party/jdk8-annotations/org/eclipse - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt) - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
Path: third-party/annotations/io/reactivex - License: Apache 2 (license/third_party/testdata/rxjava_license.txt) - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors
Path: third-party/annotations/lombok - License: MIT (license/third_party/testdata/lombok_license.txt) - Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors
Path: idea/idea-android/tests/org/jetbrains/kotlin/android/AndroidTestBase.java
Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java
Path: idea/testData/android/lint/IntRange.java
Path: idea/testData/android/lint/RequiresPermission.java
Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject
Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2
Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java
The following source code is used for testing the Kotlin tools and/or libraries and is not incorporated into any distributions of the tools or libraries:
Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/PluginsDslIT.kt
Path: libraries/tools/kotlin-gradle-plugin-integration-tests/target/test-classes/testProject/noArgJpa/src/javax/persistence/Entity.java
Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Entity.java
Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/noArgJpa/src/javax/persistence/Embeddable.java
The following code is provided as examples and is not incorporated into any distributions of the compiler, libraries or plugin:
Path: libraries/examples/browser-example/src/js/jquery.js
Path: libraries/examples/browser-example-with-library/src/js/jquery.js