Generate test project with proper path on Windows
^KT-65540
This commit is contained in:
committed by
Space Team
parent
75c6d06077
commit
610b9eae91
+5
-3
@@ -60,7 +60,7 @@ class MultiplatformResourcesConsumptionIT : KGPBaseTest() {
|
|||||||
settingsGradleKts.append(
|
settingsGradleKts.append(
|
||||||
"""
|
"""
|
||||||
include(":${it.name}")
|
include(":${it.name}")
|
||||||
project(":${it.name}").projectDir = File("${it.pathString}")
|
project(":${it.name}").projectDir = File("${it.escapedPathString}")
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,7 @@ class MultiplatformResourcesConsumptionIT : KGPBaseTest() {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven {
|
maven {
|
||||||
url = uri("${publicationRepository.pathString}")
|
url = uri("${publicationRepository.escapedPathString}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
@@ -216,7 +216,7 @@ class MultiplatformResourcesConsumptionIT : KGPBaseTest() {
|
|||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = uri("${publicationRepository.pathString}")
|
url = uri("${publicationRepository.escapedPathString}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -224,4 +224,6 @@ class MultiplatformResourcesConsumptionIT : KGPBaseTest() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private val Path.escapedPathString: String get() = pathString.replace("\\", "\\\\")
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user