Normalize line separators in GradleImportingTestCase

This commit is contained in:
Dmitry Savvinov
2020-01-21 20:23:14 +03:00
parent 56286cd4dc
commit 37c7212a30
@@ -246,7 +246,7 @@ abstract class GradleImportingTestCase : ExternalSystemImportingTestCase() {
it.isDirectory -> null
!it.name.endsWith(SUFFIX) -> {
var text = it.readText()
var text = FileUtil.loadFile(it, /* convertLineSeparators = */ true)
(properties ?: mapOf("kotlin_plugin_version" to LATEST_STABLE_GRADLE_PLUGIN_VERSION)).forEach { key, value ->
text = text.replace("{{${key}}}", value)
}