Fix README.md resolution

In some build environments projectDir may differ from current working directory. In such environments build before this change would fail with IOException.
This commit is contained in:
Ilya Muradyan 2021-03-22 08:29:55 +03:00 committed by Jakub Chrzanowski
parent df2e2320cd
commit 4f47d78be9

View File

@ -87,7 +87,7 @@ tasks {
// 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( pluginDescription(
closure { closure {
File("./README.md").readText().lines().run { File(projectDir, "README.md").readText().lines().run {
val start = "<!-- Plugin description -->" val start = "<!-- Plugin description -->"
val end = "<!-- Plugin description end -->" val end = "<!-- Plugin description end -->"