mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-03-02 03:39:24 +00:00
Fixed pluginName variable name collision with intellij closure getter in Gradle configuration #29
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user