Skip to content

Commit 783adca

Browse files
committed
Fix missing version in publish task
1 parent d2bf64b commit 783adca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ plugins {
1313
id("jacoco")
1414
}
1515

16+
val pluginVersion = environment("GIT_TAG_NAME").orElse("0.0.1-dev").get()
1617
group = properties("pluginGroup").get()
17-
version = environment("GIT_TAG_NAME").orElse("0.0.1-dev")
18+
version = pluginVersion
1819

1920
repositories {
2021
mavenCentral()
@@ -79,7 +80,7 @@ intellijPlatform {
7980
pluginConfiguration {
8081
name = properties("pluginName")
8182
changeNotes.set(provider {
82-
changelog.getOrNull(version.get())
83+
changelog.getOrNull(pluginVersion)
8384
?.let { changelog.renderItem(it, Changelog.OutputType.HTML) }
8485
})
8586
}

0 commit comments

Comments
 (0)