Resolve ktlint reports

pull/25/head
Jakub Chrzanowski 4 years ago committed by Jakub Chrzanowski
parent 741869f9cc
commit 86bde4433d

@ -11,6 +11,9 @@
- Dependencies - bump ktlint to 9.3.0
- GitHub Actions - make *Update Changelog* job dependent on the *Publish Plugin*
### Fixed
- Resolve ktlint reports
## [0.3.1]
### Changed
- GitHub Actions - run plugin verifier against 2019.3 2020.1 2020.2

@ -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 {

Loading…
Cancel
Save