Like many other open-source projects, Kotlin relies on third-party code, meaning that the Kotlin project includes some code not developed by JetBrains or the Kotlin programming language contributors. Sometimes it is derived work, such as code rewritten from C++ to Kotlin.
You can find licenses for the third-party work used in Kotlin in our GitHub repository:
In particular, the Kotlin/Native compiler produces binaries that can include third-party code, data, or derived work. This means that the Kotlin/Native-compiled binaries are subject to the terms and conditions of the third-party licenses.
In practice, if you distribute a Kotlin/Native-compiled final binary, you should always include necessary license files in your binary distribution. The files should be accessible to users of your distribution in a readable form.
Always include the following license files for the corresponding projects:
|Project||Files to be included|
|libbacktrace||3-clause BSD license with copyright notice|
Always include, unless you use the system memory allocator (the
|Unicode character database||Unicode license|
Specific targets require additional license files:
|Project||Targets||Files to be included|
|MinGW-w64 headers and runtime libraries||
|Musl (math implementation)||
||Musl copyright notice|
None of these libraries require the distributed Kotlin/Native binaries to be open-sourced.