README.md 7.8 KB
Newer Older
D
Dmitry Jemerov 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
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

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
     - License: BSD (license/third_party/asm_license.txt)
     - Origin: Derived from ASM: a very small and fast Java bytecode manipulation framework, Copyright (c) 2000-2011 INRIA, France Telecom

 - Path: compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/common/MethodAnalyzer.kt
     - License: BSD (license/third_party/asm_license.txt)
     - 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
     - License: MIT (license/third_party/pcollections_LICENSE.txt)
     - Origin: Derived from PCollections, A Persistent Java Collections Library (https://pcollections.org/)
  
 - Path: js/js.ast 
     - License: BSD (license/third_party/dart_LICENSE.txt)
     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
   
 - Path: js/js.inliner/src/org/jetbrains/kotlin/js/inline/FunctionInlineMutator.kt 
     - License: BSD (license/third_party/dart_LICENSE.txt)
     - Origin: Originally part of the Dart compiler, (c) 2011 the Dart Project Authors,
   
 - Path: js/js.libraries/src/core/collections
      - License: Apache 2 (license/third_party/gwt_license.txt)
      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
 
 - Path: js/js.libraries/src/js/long.js
      - License: Apache 2 (license/third_party/closure-compiler_LICENSE.txt)
      - Origin: Google Closure Library, Copyright 2009 The Closure Library Authors
 
 - Path: js/js.parser/src/com/google
      - License: Netscape Public License 1.1 (license/third_party/rhino_LICENSE.txt)
      - Origin: Originally part of GWT, (C) 2007-08 Google Inc., distributed under the Apache 2 license. The code 
        is derived from Rhino, (C) 1997-1999 Netscape Communications Corporation, distributed under the
        Netscape Public License.
   
 - Path: js/js.translator/qunit/qunit.js
      - License: MIT (license/third_party/qunit_license.txt)
      - Origin: QUnit, Copyright (c) 2012 John Resig, Jörn Zaefferer,
   
 - Path: libraries/stdlib/src/kotlin/collections
      - License: Apache 2 (license/third_party/gwt_license.txt)
      - Origin: Derived from GWT, (C) 2007-08 Google Inc.
    
 - Path: plugins/lint/android-annotations
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

 - Path: plugins/lint/lint-api
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

 - Path: plugins/lint/lint-checks
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

 - Path: plugins/lint/lint-idea
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

## Kotlin Test Data

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:

73
 - Path: third-party/annotations/android
D
Dmitry Jemerov 已提交
74 75 76
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

77
 - Path: third-party/annotations/com/android
D
Dmitry Jemerov 已提交
78 79 80
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project

81
 - Path: third-party/annotations/org/eclipse
D
Dmitry Jemerov 已提交
82 83 84
       - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
       - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.

85
 - Path: third-party/annotations/edu/umd/cs/findbugs
D
Dmitry Jemerov 已提交
86 87 88
       - License: LGPL 2.1 (license/third_party/testdata/findbugs_license.txt)
       - Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland
   
89
 - Path: third-party/jdk8-annotations/org/eclipse
D
Dmitry Jemerov 已提交
90 91 92
       - License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
       - Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.

93
 - Path: third-party/annotations/io/reactivex
D
Dmitry Jemerov 已提交
94 95 96
       - License: Apache 2 (license/third_party/testdata/rxjava_license.txt)
       - Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors 
   
97
 - Path: third-party/annotations/lombok
D
Dmitry Jemerov 已提交
98 99 100 101 102 103 104 105 106 107
       - 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
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
 
 - Path: idea/testData/android/lintQuickfix/requiresApi/RequiresApi.java
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
108 109 110 111
      
 - Path: idea/testData/android/lint/IntRange.java
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
112 113 114 115
      
 - Path: idea/testData/android/lint/RequiresPermission.java
      - License: Apache 2 (license/third_party/aosp_license.txt)
      - Origin: Copyright (C) 2011-15 The Android Open Source Project
D
Dmitry Jemerov 已提交
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
   
 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/allOpenSpring/src/org/springframework/stereotype/Component.java
      - License: Apache 2 (license/third_party/testdata/spring_license.txt)
      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.

 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/AndroidDaggerProject
      - License: Apache 2 (license/third_party/testdata/dagger_license.txt)
      - Origin: Dagger, Copyright (C) 2013 Square, Inc.

 - Path: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2
      - License: Apache 2 (license/third_party/testdata/dagger_license.txt)
      - Origin: Dagger, Copyright (C) 2013 Square, Inc.
 
 - Path: libraries/tools/kotlin-maven-plugin-test/src/it/test-allopen-spring/src/main/java/org/springframework/stereotype/Component.java
      - License: Apache 2 (license/third_party/testdata/spring_license.txt)
      - Origin: Spring Framework, Copyright 2002-2007 the original author or authors.

S
Sergey Igushkin 已提交
133 134 135 136 137 138 139 140 141
## Kotlin Tools and Libraries Tests

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
      - License: Apache 2 (license/third_party/testdata/gradle_license.txt)
      - Origin: Gradle, Copyright 2002-2017 Gradle, Inc. 

D
Dmitry Jemerov 已提交
142 143 144 145 146 147 148 149 150 151 152 153 154
## Example Code

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
      - License: MIT (license/third_party/jquery_license.txt)
      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig
 
 - Path: libraries/examples/browser-example-with-library/src/js/jquery.js
      - License: MIT (license/third_party/jquery_license.txt)
      - Origin: jQuery JavaScript Library v1.6.2, Copyright 2011, John Resig