Skip to content

Commit

Permalink
Fix verifyPlugin task
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKaN committed Sep 30, 2024
1 parent bd63e12 commit 6992885
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.jetbrains.intellij.platform.gradle.TestFrameworkType

fun properties(key: String) = providers.gradleProperty(key)
fun environment(key: String) = providers.environmentVariable(key)
fun Provider<String>.toList() = map { it.split(',').mapNotNull { s -> s.trim().takeIf(String::isNotEmpty) } }

plugins {
id("java") // Java support
Expand Down Expand Up @@ -38,10 +39,10 @@ dependencies {
create(type = properties("platformType"), version = properties("platformVersion"), useInstaller = false)
jetbrainsRuntime()
plugins(
properties("platformPlugins").map { it.split(',').map(String::trim).filter(String::isNotEmpty) }
properties("platformPlugins").toList()
)
bundledPlugins(
properties("platformBundledPlugins").map { it.split(',').map(String::trim).filter(String::isNotEmpty) }
properties("platformBundledPlugins").toList()
)
pluginVerifier()
zipSigner()
Expand All @@ -61,6 +62,12 @@ intellijPlatform {
pluginConfiguration {
name = properties("pluginName")
}
pluginVerification {
freeArgs = listOf("-mute", "TemplateWordInPluginName")
ides {
ide(type = properties("platformType"), version = properties("platformVersion"), useInstaller = false)
}
}
}

// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
Expand All @@ -87,7 +94,7 @@ tasks {
}

patchPluginXml {
version = properties("pluginVersion")
version = properties("pluginVersion").get()
sinceBuild = properties("pluginSinceBuild")
untilBuild = properties("pluginUntilBuild")

Expand Down

0 comments on commit 6992885

Please sign in to comment.