Fixed `pluginName` variable name collision with `intellij` closure getter in Gradle configuration #29

pull/32/head
Jakub Chrzanowski 4 years ago
parent 0579d95400
commit 5f32b01eb5

@ -3,6 +3,11 @@
# IntelliJ Platform Plugin Template Changelog
## [Unreleased]
### Changed
- GitHub Actions: allow releasing plugin even for the base project
### Fixed
- `pluginName` variable name collision with `intellij` closure getter in Gradle configuration #29
## [0.3.2]
### Changed

@ -20,7 +20,9 @@ plugins {
// Import variables from gradle.properties file
val pluginGroup: String by project
val pluginName: String by project
// `pluginName_` variable ends with `_` because of the collision with Kotlin magic getter in the `intellij` closure.
// Read more about the issue: https://github.com/JetBrains/intellij-platform-plugin-template/issues/29
val pluginName_: String by project
val pluginVersion: String by project
val pluginSinceBuild: String by project
val pluginUntilBuild: String by project
@ -44,7 +46,7 @@ dependencies {
// Configure gradle-intellij-plugin plugin.
// Read more: https://github.com/JetBrains/gradle-intellij-plugin
intellij {
pluginName = pluginName
pluginName = pluginName_
version = platformVersion
type = platformType
downloadSources = platformDownloadSources.toBoolean()

@ -2,7 +2,7 @@
# -> https://www.jetbrains.org/intellij/sdk/docs/reference_guide/intellij_artifacts.html
pluginGroup = org.jetbrains.plugins.template
pluginName = Template
pluginName_ = Template
pluginVersion = 0.3.4
pluginSinceBuild = 193
pluginUntilBuild = 202.*

Loading…
Cancel
Save