From d9fd1b5ce65601992b900ec7c1b00e1d9e3e6acf Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sun, 20 Oct 2024 16:47:21 +0200 Subject: [PATCH] Build: enable automatic plugin verification --- build.gradle.kts | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f5052b8c..38a040e3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,12 +13,6 @@ plugins { alias(libs.plugins.kotlin) } -intellijPlatform { - pluginConfiguration { - name = "PowerShell" - } -} - sourceSets { main { java.srcDir("src/main/gen-parser") @@ -68,6 +62,7 @@ dependencies { bundledPlugins("org.intellij.intelliLang", "org.jetbrains.plugins.terminal") instrumentationTools() testFramework(TestFrameworkType.Bundled) + pluginVerifier() } implementation(libs.bundles.junixsocket) @@ -92,6 +87,21 @@ dependencies { ) } +intellijPlatform { + pluginConfiguration { + name = "PowerShell" + } + pluginVerification { + ides { + recommended() + } + freeArgs.addAll( + "-mute", "ForbiddenPluginIdPrefix", + "-mute", "TemplateWordInPluginId" + ) + } +} + configurations { runtimeClasspath { // NOTE: Newer versions of these libraries are provided by IntelliJ, so let's exclude them from the dependency set @@ -227,6 +237,7 @@ tasks { check { dependsOn(verifyDistributionSize) + dependsOn(verifyPlugin) } runIde {