Remove intellijPlatform.pluginConfiguration.description default configuration from build.gradle.kts.

This commit is contained in:
Jakub Chrzanowski
2026-05-04 10:22:21 +02:00
parent 157a841828
commit 65f5bd6d51
2 changed files with 1 additions and 19 deletions

View File

@@ -11,6 +11,7 @@
### Removed
- Remove changelog configuration from `build.gradle.kts` as it is preconfigured now in the IntelliJ Platform Gradle Plugin
- Remove `intellijPlatform.pluginConfiguration.description` default configuration from `build.gradle.kts`.
### Fixed

View File

@@ -1,4 +1,3 @@
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
plugins {
@@ -16,21 +15,3 @@ dependencies {
testFramework(TestFrameworkType.Platform)
}
}
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
intellijPlatform {
pluginConfiguration {
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
description = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
val start = "<!-- Plugin description -->"
val end = "<!-- Plugin description end -->"
with(it.lines()) {
if (!containsAll(listOf(start, end))) {
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
}
subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML)
}
}
}
}