Skip to content

Commit

Permalink
Build: enable automatic plugin verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Oct 20, 2024
1 parent 9b8d735 commit d9fd1b5
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ plugins {
alias(libs.plugins.kotlin)
}

intellijPlatform {
pluginConfiguration {
name = "PowerShell"
}
}

sourceSets {
main {
java.srcDir("src/main/gen-parser")
Expand Down Expand Up @@ -68,6 +62,7 @@ dependencies {
bundledPlugins("org.intellij.intelliLang", "org.jetbrains.plugins.terminal")
instrumentationTools()
testFramework(TestFrameworkType.Bundled)
pluginVerifier()
}

implementation(libs.bundles.junixsocket)
Expand All @@ -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
Expand Down Expand Up @@ -227,6 +237,7 @@ tasks {

check {
dependsOn(verifyDistributionSize)
dependsOn(verifyPlugin)
}

runIde {
Expand Down

0 comments on commit d9fd1b5

Please sign in to comment.