{"id":13411597,"url":"https://github.com/JetBrains/kotlin","last_synced_at":"2025-03-14T17:30:59.107Z","repository":{"id":2460304,"uuid":"3432266","full_name":"JetBrains/kotlin","owner":"JetBrains","description":"The Kotlin Programming Language. ","archived":false,"fork":false,"pushed_at":"2025-03-09T22:42:16.000Z","size":3710584,"stargazers_count":50135,"open_issues_count":176,"forks_count":5864,"subscribers_count":1509,"default_branch":"master","last_synced_at":"2025-03-10T01:43:33.899Z","etag":null,"topics":["compiler","gradle-plugin","intellij-plugin","kotlin","kotlin-library","maven-plugin","programming-language","wasm","webassembly"],"latest_commit_sha":null,"homepage":"https://kotlinlang.org","language":"Kotlin","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JetBrains.png","metadata":{"files":{"readme":"ReadMe.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-02-13T17:29:58.000Z","updated_at":"2025-03-10T01:15:53.000Z","dependencies_parsed_at":"2023-09-25T01:09:47.384Z","dependency_job_id":"77b30534-73ca-4c3a-ab2c-21f8950628cb","html_url":"https://github.com/JetBrains/kotlin","commit_stats":{"total_commits":116980,"total_committers":1078,"mean_commits":"108.51576994434137","dds":0.9575141049752094,"last_synced_commit":"8e090cb704ce903c7be0538ae11fb75e61e2c85c"},"previous_names":[],"tags_count":35744,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fkotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fkotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fkotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fkotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JetBrains","download_url":"https://codeload.github.com/JetBrains/kotlin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242926237,"owners_count":20207754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","gradle-plugin","intellij-plugin","kotlin","kotlin-library","maven-plugin","programming-language","wasm","webassembly"],"created_at":"2024-07-30T20:01:14.856Z","updated_at":"2025-03-14T17:30:59.101Z","avatar_url":"https://github.com/JetBrains.png","language":"Kotlin","funding_links":[],"categories":["Kotlin","Website","官网及文档","Others","Java","\u003e 30k ★","HarmonyOS","计算机编程 数据结构与算法","compiler","JVM语言","programming-language","Back-End Development","Android Kotlin Project Showcase","General Resources","VI. Program languages and applications that were written with Java","\u003ca name=\"Kotlin\"\u003e\u003c/a\u003eKotlin"],"sub_categories":["项目支持？","Windows Manager","网络服务_其他","1.  Program languages that were written with Java"],"readme":"[![official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)\n[![TeamCity (simple build status)](https://img.shields.io/teamcity/http/teamcity.jetbrains.com/s/Kotlin_KotlinPublic_Compiler.svg)](https://teamcity.jetbrains.com/buildConfiguration/Kotlin_KotlinPublic_Compiler?branch=%3Cdefault%3E\u0026buildTypeTab=overview\u0026mode=builds)\n[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlin/kotlin-maven-plugin.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.jetbrains.kotlin%22)\n[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle\u0026labelColor=02303A)](https://ge.jetbrains.com/scans?search.rootProjectNames=Kotlin)\n\n# Kotlin Programming Language\n\nWelcome to [Kotlin](https://kotlinlang.org/)!   \nKotlin is a concise multiplatform language developed by [JetBrains](https://www.jetbrains.com/) and [contributors](https://kotlinlang.org/docs/contribute.html).\n\nSome handy links:\n\n * [Kotlin Site](https://kotlinlang.org/)\n * [Getting Started Guide](https://kotlinlang.org/docs/tutorials/getting-started.html)\n * [Try Kotlin](https://play.kotlinlang.org/)\n * [Kotlin Standard Library](https://kotlinlang.org/api/latest/jvm/stdlib/index.html)\n * [Issue Tracker](https://youtrack.jetbrains.com/issues/KT)\n * [Kotlin YouTube Channel](https://www.youtube.com/channel/UCP7uiEZIqci43m22KDl0sNw)\n * [Forum](https://discuss.kotlinlang.org/)\n * [Kotlin Blog](https://blog.jetbrains.com/kotlin/)\n * [Subscribe to Kotlin YouTube channel](https://www.youtube.com/channel/UCP7uiEZIqci43m22KDl0sNw)\n * [Follow Kotlin on Twitter](https://twitter.com/kotlin)\n * [Public Slack channel](https://slack.kotlinlang.org/)\n * [TeamCity CI build](https://teamcity.jetbrains.com/project.html?tab=projectOverview\u0026projectId=Kotlin)\n * [Kotlin Foundation](https://kotlinfoundation.org/)\n\n## Kotlin Multiplatform capabilities\n\nSupport for multiplatform programming is one of Kotlin’s key benefits. It reduces time spent writing and maintaining the same code for [different platforms](https://kotlinlang.org/docs/reference/mpp-supported-platforms.html) while retaining the flexibility and benefits of native programming.\n\n * [Kotlin Multiplatform Mobile](https://kotlinlang.org/lp/mobile/) for sharing code between Android and iOS\n * [Getting Started with Kotlin Multiplatform Mobile Guide](https://kotlinlang.org/docs/mobile/create-first-app.html)\n * [Kotlin Multiplatform Benefits](https://kotlinlang.org/docs/reference/multiplatform.html)\n * [Share code on all platforms](https://kotlinlang.org/docs/reference/mpp-share-on-platforms.html#share-code-on-all-platforms)\n * [Share code on similar platforms](https://kotlinlang.org/docs/reference/mpp-share-on-platforms.html#share-code-on-similar-platforms)\n\n## Editing Kotlin\n\n * [Kotlin IntelliJ IDEA Plugin](https://kotlinlang.org/docs/tutorials/getting-started.html) ([source code](https://github.com/JetBrains/intellij-community/tree/master/plugins/kotlin))\n * [Kotlin Eclipse Plugin](https://kotlinlang.org/docs/tutorials/getting-started-eclipse.html)\n * [Kotlin Sublime Text Package](https://github.com/vkostyukov/kotlin-sublime-package)\n\n## Build environment requirements\n\nThis repository is using [Gradle toolchains](https://docs.gradle.org/current/userguide/toolchains.html) feature\nto select and auto-provision required JDKs from [AdoptOpenJdk](https://adoptopenjdk.net) project.\n\nAlternatively, it is still possible to only provide required JDKs via environment variables \n(see [gradle.properties](./gradle.properties#L5) for supported variable names). To ensure Gradle uses only JDKs \nfrom environmental variables - disable Gradle toolchain auto-detection by passing `-Porg.gradle.java.installations.auto-detect=false` option\n(or put it into `$GRADLE_USER_HOME/gradle.properties`).\n\nOn Windows you might need to add long paths setting to the repo:\n\n    git config core.longpaths true \n\n## Building\n\nThe project is built with Gradle. Run Gradle to build the project and to run the tests \nusing the following command on Unix/macOS:\n\n    ./gradlew \u003ctasks-and-options\u003e\n    \nor the following command on Windows:\n\n    gradlew \u003ctasks-and-options\u003e\n\nOn the first project configuration gradle will download and setup the dependencies on\n\n* `intellij-core` is a part of command line compiler and contains only necessary APIs.\n* `idea-full` is a full blown IntelliJ IDEA Community Edition to be used in the plugin module.\n\nThese dependencies are quite large, so depending on the quality of your internet connection \nyou might face timeouts getting them. In this case, you can increase timeout by specifying the following \ncommand line parameters on the first run: \n    \n    ./gradlew -Dhttp.socketTimeout=60000 -Dhttp.connectionTimeout=60000\n\n## Important gradle tasks\n\n- `clean` - clean build results\n- `dist` - assembles the compiler distribution into `dist/kotlinc/` folder\n- `install` - build and install all public artifacts into local maven repository\n- `coreLibsTest` - build and run stdlib, reflect and kotlin-test tests\n- `gradlePluginTest` - build and run gradle plugin tests\n- `compilerTest` - build and run all compiler tests\n\nTo reproduce TeamCity build use `-Pteamcity=true` flag. Local builds don't run proguard and have jar compression disabled by default.\n\n**OPTIONAL:** Some artifacts, mainly Maven plugin ones, are built separately with Maven.\nRefer to [libraries/ReadMe.md](libraries/ReadMe.md) for details.\n\nTo build Kotlin/Native, see\n[kotlin-native/README.md](kotlin-native/README.md#building-from-source).\n\n## \u003ca name=\"working-in-idea\"\u003e\u003c/a\u003e Working with the project in IntelliJ IDEA\n\nIt is recommended to use the latest released version of Intellij IDEA (Community or Ultimate Edition). You can download IntelliJ IDEA [here](https://www.jetbrains.com/idea/download).\n\nAfter cloning the project, import the project in IntelliJ by choosing the project directory in the Open project dialog.\n\nFor handy work with compiler tests it's recommended to use [\nKotlin Compiler Test Helper](https://github.com/demiurg906/test-data-helper-plugin)\n\n### Dependency verification\n\nWe have a [dependencies verification](https://docs.gradle.org/current/userguide/dependency_verification.html) feature enabled in the\nrepository for all Gradle builds. Gradle will check hashes (md5 and sha256) of used dependencies and will fail builds with\n`Dependency verification failed` errors when local artifacts are absent or have different hashes listed in the\n[verification-metadata.xml](https://github.com/JetBrains/kotlin/blob/master/gradle/verification-metadata.xml) file.\n\nIt's expected that `verification-metadata.xml` should only be updated with the commits that modify the build. There are some tips how\nto perform such updates:\n\n- Delete `components` section of `verification-metadata.xml` to avoid stockpiling of old unused dependencies. You may use the following command:\n```bash\n#macOS\nsed -i '' -e '/\u003ccomponents\u003e/,/\u003c\\/components\u003e/d' gradle/verification-metadata.xml\n#Linux \u0026 Git for Windows\nsed -i -e '/\u003ccomponents\u003e/,/\u003c\\/components\u003e/d' gradle/verification-metadata.xml\n```\n- Re-generate dependencies with Gradle's `--write-verification-metadata` command (verify update relates to your changes)\n\n```bash\n./gradlew --write-verification-metadata sha256,md5 -Pkotlin.native.enabled=true resolveDependencies\n```\n\n*`resolveDependencies` task resolves dependencies for all platforms including dependencies downloaded by plugins.*\n\nYou can also use `./scripts/update-verification-metadata.sh` script which includes both of these steps\n\nKeep in mind:\n\n- If you’re adding a dependency with OS mentioned in an artifact name (`darwin`, `mac`, `osx`, `linux`, `windows`), remember to add them to \n  `implicitDependencies` configuration or update `resolveDependencies` task if needed. `resolveDependencies` should resolve all dependencies\n  including dependencies for different platforms.\n- If you have a `local.properties` file in your Kotlin project folder, make sure that it doesn't contain `kotlin.native.enabled=false`.\n  Otherwise, native-only dependencies may not be added to the verification metadata. This is because `local.properties` has higher \n  precedence than the `-Pkotlin.native.enabled=true` specified in the Gradle command.\n\n## Using -dev versions\n\nWe publish `-dev` versions frequently.\n\nFor `-dev` versions you can use the [list of available versions](https://maven.pkg.jetbrains.space/kotlin/p/kotlin/bootstrap/org/jetbrains/kotlin/kotlin-compiler/maven-metadata.xml) and include this maven repository:\n\n```kotlin\nmaven(\"https://maven.pkg.jetbrains.space/kotlin/p/kotlin/bootstrap\")\n```\n\n# License\nKotlin is distributed under the terms of the Apache License (Version 2.0). See [license folder](license/README.md) for details.\n\n# Contributing\n\nPlease be sure to review Kotlin's [contributing guidelines](docs/contributing.md) to learn how to help the project.\n\n# Kotlin Foundation\n\nThe Kotlin Foundation is a non-profit organization whose mission is to promote and advance the Kotlin ecosystem. You can learn more about the structure and goals of the Kotlin Foundation on its [official website](https://kotlinfoundation.org/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJetBrains%2Fkotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJetBrains%2Fkotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJetBrains%2Fkotlin/lists"}