KT-34795 Fix failing NewMultiplatformIT#testLibAndApp test

- Revert back `maven(...)` to `maven { setUrl(...) }`, because in this test this syntax is used intentionally to be valid both for `.gradle` and `.gradle.kts`
This commit is contained in:
Roman Golyshev
2020-01-30 15:46:53 +03:00
committed by Roman Golyshev
parent c804190f36
commit fe779bf7bd
@@ -139,7 +139,9 @@ class NewMultiplatformIT : BaseGradleIT() {
with(appProject) {
setupWorkingDir()
gradleBuildScript().appendText("\nrepositories { maven(\"$libLocalRepoUri\") }")
// we use `maven { setUrl(...) }` because this syntax actually works both for Groovy and Kotlin DSLs in Gradle
gradleBuildScript().appendText("\nrepositories { maven { setUrl(\"$libLocalRepoUri\") } }")
fun CompiledProject.checkProgramCompilationCommandLine(check: (String) -> Unit) {
output.lineSequence().filter {