|
|
|
@ -91,22 +91,26 @@ tasks {
|
|
|
|
|
untilBuild(pluginUntilBuild)
|
|
|
|
|
|
|
|
|
|
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
|
|
|
|
|
pluginDescription(closure {
|
|
|
|
|
File("./README.md").readText().lines().run {
|
|
|
|
|
val start = "<!-- Plugin description -->"
|
|
|
|
|
val end = "<!-- Plugin description end -->"
|
|
|
|
|
|
|
|
|
|
if (!containsAll(listOf(start, end))) {
|
|
|
|
|
throw GradleException("Plugin description section not found in README.md file:\n$start ... $end")
|
|
|
|
|
}
|
|
|
|
|
subList(indexOf(start) + 1, indexOf(end))
|
|
|
|
|
}.joinToString("\n").run { markdownToHTML(this) }
|
|
|
|
|
})
|
|
|
|
|
pluginDescription(
|
|
|
|
|
closure {
|
|
|
|
|
File("./README.md").readText().lines().run {
|
|
|
|
|
val start = "<!-- Plugin description -->"
|
|
|
|
|
val end = "<!-- Plugin description end -->"
|
|
|
|
|
|
|
|
|
|
if (!containsAll(listOf(start, end))) {
|
|
|
|
|
throw GradleException("Plugin description section not found in README.md file:\n$start ... $end")
|
|
|
|
|
}
|
|
|
|
|
subList(indexOf(start) + 1, indexOf(end))
|
|
|
|
|
}.joinToString("\n").run { markdownToHTML(this) }
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Get the latest available change notes from the changelog file
|
|
|
|
|
changeNotes(closure {
|
|
|
|
|
changelog.getLatest().toHTML()
|
|
|
|
|
})
|
|
|
|
|
changeNotes(
|
|
|
|
|
closure {
|
|
|
|
|
changelog.getLatest().toHTML()
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
publishPlugin {
|
|
|
|
|