Skip to content

Commit d9fd1b5

Browse files
committed
Build: enable automatic plugin verification
1 parent 9b8d735 commit d9fd1b5

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

build.gradle.kts

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ plugins {
1313
alias(libs.plugins.kotlin)
1414
}
1515

16-
intellijPlatform {
17-
pluginConfiguration {
18-
name = "PowerShell"
19-
}
20-
}
21-
2216
sourceSets {
2317
main {
2418
java.srcDir("src/main/gen-parser")
@@ -68,6 +62,7 @@ dependencies {
6862
bundledPlugins("org.intellij.intelliLang", "org.jetbrains.plugins.terminal")
6963
instrumentationTools()
7064
testFramework(TestFrameworkType.Bundled)
65+
pluginVerifier()
7166
}
7267

7368
implementation(libs.bundles.junixsocket)
@@ -92,6 +87,21 @@ dependencies {
9287
)
9388
}
9489

90+
intellijPlatform {
91+
pluginConfiguration {
92+
name = "PowerShell"
93+
}
94+
pluginVerification {
95+
ides {
96+
recommended()
97+
}
98+
freeArgs.addAll(
99+
"-mute", "ForbiddenPluginIdPrefix",
100+
"-mute", "TemplateWordInPluginId"
101+
)
102+
}
103+
}
104+
95105
configurations {
96106
runtimeClasspath {
97107
// NOTE: Newer versions of these libraries are provided by IntelliJ, so let's exclude them from the dependency set
@@ -227,6 +237,7 @@ tasks {
227237

228238
check {
229239
dependsOn(verifyDistributionSize)
240+
dependsOn(verifyPlugin)
230241
}
231242

232243
runIde {

0 commit comments

Comments
 (0)