{"id":14349966,"url":"https://github.com/nebula-plugins/nebula-kotlin-plugin","last_synced_at":"2025-08-21T02:32:56.140Z","repository":{"id":53966325,"uuid":"60103103","full_name":"nebula-plugins/nebula-kotlin-plugin","owner":"nebula-plugins","description":"Provides the Kotlin plugin via the Gradle plugin portal, automatically depends on the standard library, and allows Kotlin library versions to be omitted","archived":true,"fork":false,"pushed_at":"2021-06-09T01:20:55.000Z","size":797,"stargazers_count":57,"open_issues_count":2,"forks_count":12,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-04-07T01:13:15.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nebula-plugins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-31T15:50:41.000Z","updated_at":"2023-03-21T22:03:38.000Z","dependencies_parsed_at":"2022-08-13T05:20:49.092Z","dependency_job_id":null,"html_url":"https://github.com/nebula-plugins/nebula-kotlin-plugin","commit_stats":null,"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebula-plugins%2Fnebula-kotlin-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebula-plugins%2Fnebula-kotlin-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebula-plugins%2Fnebula-kotlin-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebula-plugins%2Fnebula-kotlin-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nebula-plugins","download_url":"https://codeload.github.com/nebula-plugins/nebula-kotlin-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":217116684,"owners_count":16127261,"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":[],"created_at":"2024-08-27T04:00:31.542Z","updated_at":"2024-08-27T04:01:28.272Z","avatar_url":"https://github.com/nebula-plugins.png","language":"Groovy","funding_links":[],"categories":["Recently Updated"],"sub_categories":["[Oct 28, 2024](/content/2024/10/28/README.md)"],"readme":"# Nebula Kotlin Plugin\n\n![Support Status](https://img.shields.io/badge/nebula-maintenance-orange.svg)\n[![Gradle Plugin Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/com.netflix.nebula/nebula-kotlin-plugin/maven-metadata.xml.svg?label=gradlePluginPortal)](https://plugins.gradle.org/plugin/nebula.kotlin)\n[![Maven Central](https://img.shields.io/maven-central/v/com.netflix.nebula/nebula-kotlin-plugin)](https://maven-badges.herokuapp.com/maven-central/com.netflix.nebula/nebula-kotlin-plugin)\n![Build](https://github.com/nebula-plugins/nebula-kotlin-plugin/actions/workflows/nebula.yml/badge.svg)\n[![Apache 2.0](https://img.shields.io/github/license/nebula-plugins/nebula-kotlin-plugin.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\n\nThis plugin is in maintenance mode but will continue to receive 1.2 and 1.3 Kotlin releases. JetBrains has deprecated the existing `jvm` plugin and replaced it with the `multiplatform` plugin. If you use 1.3.70 or later you'll receive the warning:\n```\nThe 'org.jetbrains.kotlin.platform.*' plugins are deprecated and will no longer be available in Kotlin 1.4.\nPlease migrate the project to the 'org.jetbrains.kotlin.multiplatform' plugin. \nSee: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html\n```\n\nThe multiplatform plugin is a complete migration from the legacy plugin and provides many of the ergonomic features, such as JVM target configuration and Kotlin library version management that this plugin provided. If you have a project that will move to 1.4 once it's released you should migrate to `multiplatform`.\n\n# Features\n\nProvides the Kotlin plugin via the Gradle plugin portal, and adds ergonomic improvements over the default plugin:\n\n- Automatically depends on the standard library\n- Allows Kotlin library versions to be omitted, inferring them automatically from the plugin version\n- For Kotlin 1.1 and later, sets the `-jvm-target` and uses the jre standard library based on the `sourceCompatibility`\n\t- Use the https://github.com/nebula-plugins/gradle-java-cross-compile-plugin to set the `targetJdk` if desired\n- Bundles the `kotlin-allopen` and `kotlin-noarg` plugins to allow them to be applied without adding them manually to the classpath\n\n# Quick Start\n\nRefer to the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/nebula.kotlin) for instructions on how to apply the main plugin.\n\n# Basic Build\n\nThe plugin simplifies a basic Kotlin build script to:\n\n```groovy\nplugins {\n    id 'nebula.kotlin' version '1.3.70'\n}\n\nrepositories {\n    mavenCentral() \n}\n```\n\n## Additional library\n\n```groovy\nplugins {\n    id 'nebula.kotlin' version '1.3.70'\n}\n\nrepositories {\n    mavenCentral() \n}\n\ndependencies {\n    implementation 'org.jetbrains.kotlin:kotlin-reflect'\n}\n```\n\n## Default configuration ( \u003e= 1.3.70)\n\nThere are cases were we only want to use kotlin for specific configurations and applying the plugin added `stdlib` to `implementation` by default.\n\nStarting on `1.3.70`, it is possible to set the default configurations for `stdlib` via `stdlibConfiguration`. For example:\n\n```groovy\nplugins {\n    id 'nebula.kotlin' version '1.3.70'\n}\n\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation 'org.jetbrains.kotlin:kotlin-reflect'\n}\n\nconfigurations {\n   myConfig\n}\n\nnebulaKotlin {\n     stdlibConfigurations = [\"myConfig\"]\n}\n```\n\nIf you use kotlin buildscripts:\n\n```\nnebulaKotlin {\n  stdlibConfigurations.set(listOf(\"implementation\", \"testFixturesImplementation\"))\n}\n```\n\n\n# Nodep plugin ( \u003e= 1.3.70)\n\nThis plugin will apply our opinions for default version of additional dependencies but won't add `stdlib` by default\n\n```groovy\nplugins {\n    id 'nebula.kotlin-nodep' version '1.3.70'\n}\n```\n\n\nThe version for `kotlin-reflect` will be automatically set to match the Kotlin version (`1.3.70`).\n\n## Caveats\n\n- IntelliJ doesn't set the `-jvm-target` compiler option based on the Java SDK setting for the project, and can cause the compiler inlining failure if it tries to inline classes compiled with Gradle. Configure the JVM target in IntelliJ preferences to avoid this\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebula-plugins%2Fnebula-kotlin-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnebula-plugins%2Fnebula-kotlin-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebula-plugins%2Fnebula-kotlin-plugin/lists"}