mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-03-02 03:39:24 +00:00
Opt-out flag for bundling Kotlin standard library.
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
# IntelliJ Platform Plugin Template Changelog
|
# IntelliJ Platform Plugin Template Changelog
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Added
|
||||||
|
- Opt-out flag for bundling Kotlin standard library by default
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- GitHub Actions: allow releasing plugin even for the base project
|
- GitHub Actions: allow releasing plugin even for the base project
|
||||||
- Dependencies - upgrade `org.jetbrains.kotlin.jvm` to 1.4.10
|
- Dependencies - upgrade `org.jetbrains.kotlin.jvm` to 1.4.10
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -70,10 +70,23 @@ The project-specific configuration file [gradle.properties][file:gradle.properti
|
|||||||
| `pluginUntilBuild` | The `until-build` attribute of the <idea-version> tag. |
|
| `pluginUntilBuild` | The `until-build` attribute of the <idea-version> tag. |
|
||||||
| `platformType` | The type of IDE distribution. |
|
| `platformType` | The type of IDE distribution. |
|
||||||
| `platformVersion` | The version of the IntelliJ Platform IDE that will be used to build the plugin. |
|
| `platformVersion` | The version of the IntelliJ Platform IDE that will be used to build the plugin. |
|
||||||
| `platformDownloadSources` | IDE sources downloaded while initializing the Gradle build. |
|
| `platformDownloadSources` | IDE sources downloaded while initializing the Gradle build. |
|
||||||
|
|
||||||
The properties listed define the plugin itself or configure the [gradle-intellij-plugin][gh:gradle-intellij-plugin] – check its documentation for more details.
|
The properties listed define the plugin itself or configure the [gradle-intellij-plugin][gh:gradle-intellij-plugin] – check its documentation for more details.
|
||||||
|
|
||||||
|
### Dependency on the Kotlin standard library
|
||||||
|
|
||||||
|
Since Kotlin 1.4, a dependency on a standard library (`stdlib`) is added automatically.
|
||||||
|
In most cases, it is not necessary to attach such libraries within the bundled plugin.
|
||||||
|
|
||||||
|
The [gradle.properties][file:gradle.properties] file explicitly alters the default behaviour of the Kotlin plugin using the opt-out property:
|
||||||
|
|
||||||
|
```
|
||||||
|
kotlin.stdlib.default.dependency = false
|
||||||
|
```
|
||||||
|
|
||||||
|
For more details, read: [Dependency on the standard library][kotlin-docs-dependency-on-stdlib].
|
||||||
|
|
||||||
## Plugin template structure
|
## Plugin template structure
|
||||||
|
|
||||||
A generated IntelliJ Platform Plugin Template repository contains the following content structure:
|
A generated IntelliJ Platform Plugin Template repository contains the following content structure:
|
||||||
@@ -247,3 +260,4 @@ You can get that token in the [My Tokens][jb:my-tokens] tab within your Marketpl
|
|||||||
[detekt]: https://detekt.github.io/detekt
|
[detekt]: https://detekt.github.io/detekt
|
||||||
[gradle]: https://gradle.org
|
[gradle]: https://gradle.org
|
||||||
[gradle-kotlin-dsl]: https://docs.gradle.org/current/userguide/kotlin_dsl.html
|
[gradle-kotlin-dsl]: https://docs.gradle.org/current/userguide/kotlin_dsl.html
|
||||||
|
[kotlin-docs-dependency-on-stdlib]: https://kotlinlang.org/docs/reference/using-gradle.html#dependency-on-the-standard-library
|
||||||
|
|||||||
@@ -10,3 +10,7 @@ pluginUntilBuild = 202.*
|
|||||||
platformType = IC
|
platformType = IC
|
||||||
platformVersion = 2019.3
|
platformVersion = 2019.3
|
||||||
platformDownloadSources = true
|
platformDownloadSources = true
|
||||||
|
|
||||||
|
# Opt-out flag for bundling Kotlin standard library.
|
||||||
|
# Read more: https://kotlinlang.org/docs/reference/using-gradle.html#dependency-on-the-standard-library
|
||||||
|
kotlin.stdlib.default.dependency = false
|
||||||
|
|||||||
Reference in New Issue
Block a user