Adjust obtaining the value for `publishPlugin.channels` property.

pull/427/head
Jakub Chrzanowski 4 months ago
parent 1759e19ffb
commit 2d9f881455
No known key found for this signature in database
GPG Key ID: C39095BFD769862E

@ -126,6 +126,6 @@ tasks {
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels = properties("pluginVersion").map { listOf(it.split('-').getOrElse(1) { "default" }.split('.')[0]) }
channels = properties("pluginVersion").map { listOf(it.substringAfter('-').substringBefore('.').ifEmpty { "default" }) }
}
}

Loading…
Cancel
Save