[Gradle, Test] Fix disable default publications test
Windows has different line endings, so it is not possible to to seek multiline substrings.
This commit is contained in:
committed by
Space Team
parent
f7ec5885f5
commit
88488f4dc9
+2
-1
@@ -1173,7 +1173,8 @@ open class HierarchicalMppIT : KGPBaseTest() {
|
||||
| </dependency>
|
||||
""".trimMargin()
|
||||
|
||||
if (expectedDependency !in pom) {
|
||||
fun String.asOneLine() = lines().joinToString(" ") { it.trim() }
|
||||
if (expectedDependency.asOneLine() !in pom.asOneLine()) {
|
||||
fail("Expected to find:\n$expectedDependency\nin pom file:\n$pom")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user