mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
Code review for #343
This commit is contained in:
parent
a0cb9e5319
commit
de09647c20
@ -53,7 +53,7 @@ qodana {
|
|||||||
cachePath.set(provider { file(".qodana").canonicalPath })
|
cachePath.set(provider { file(".qodana").canonicalPath })
|
||||||
reportPath.set(provider { file("build/reports/inspections").canonicalPath })
|
reportPath.set(provider { file("build/reports/inspections").canonicalPath })
|
||||||
saveReport.set(true)
|
saveReport.set(true)
|
||||||
showReport.set(environment("QODANA_SHOW_REPORT").map { it.toBoolean() } .getOrElse(false))
|
showReport.set(environment("QODANA_SHOW_REPORT").map { it.toBoolean() }.getOrElse(false))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
|
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
|
||||||
@ -72,18 +72,17 @@ tasks {
|
|||||||
untilBuild.set(properties("pluginUntilBuild"))
|
untilBuild.set(properties("pluginUntilBuild"))
|
||||||
|
|
||||||
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
|
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
|
||||||
pluginDescription.set(providers.fileContents(layout.buildDirectory.file("README.md")).asText.map {
|
pluginDescription.set(providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
|
||||||
it.lines().run {
|
|
||||||
val start = "<!-- Plugin description -->"
|
val start = "<!-- Plugin description -->"
|
||||||
val end = "<!-- Plugin description end -->"
|
val end = "<!-- Plugin description end -->"
|
||||||
|
|
||||||
|
with (it.lines()) {
|
||||||
if (!containsAll(listOf(start, end))) {
|
if (!containsAll(listOf(start, end))) {
|
||||||
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
|
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
|
||||||
}
|
}
|
||||||
subList(indexOf(start) + 1, indexOf(end))
|
subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML)
|
||||||
}.joinToString("\n").let { markdownToHTML(it) }
|
|
||||||
}
|
}
|
||||||
)
|
})
|
||||||
|
|
||||||
val changelog = project.changelog // local variable for configuration cache compatibility
|
val changelog = project.changelog // local variable for configuration cache compatibility
|
||||||
// Get the latest available change notes from the changelog file
|
// Get the latest available change notes from the changelog file
|
||||||
|
Loading…
Reference in New Issue
Block a user