Skip to content

Commit

Permalink
Add Plugin Verifier configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Mar 15, 2024
1 parent 08525aa commit a4b09c8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies {
plugins(properties("platformPlugins").map { it.split(',') })

instrumentationTools()
pluginVerifier()
testFramework(TestFrameworkType.Platform.JUnit4)
}
}
Expand All @@ -61,7 +62,7 @@ intellijPlatform {
val start = "<!-- Plugin description -->"
val end = "<!-- Plugin description end -->"

with (it.lines()) {
with(it.lines()) {
if (!containsAll(listOf(start, end))) {
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
}
Expand Down Expand Up @@ -101,6 +102,12 @@ intellijPlatform {
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels = properties("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
}

verifyPlugin {
ides {
recommended()
}
}
}

// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
Expand Down

0 comments on commit a4b09c8

Please sign in to comment.