KT-34795 Use maven(...) instead of maven { setUrl(...) } for gradle scripts generation

- Use new syntax in tests, but not in actual gradle files
- Reuse public `toKotlinRepositorySnippet` instead of private one
- ^KT-34795 Fixed
This commit is contained in:
Roman Golyshev
2020-01-21 17:30:22 +03:00
committed by Roman Golyshev
parent 3dbc058db9
commit a2b2c47b51
9 changed files with 14 additions and 10 deletions
@@ -139,7 +139,7 @@ class NewMultiplatformIT : BaseGradleIT() {
with(appProject) {
setupWorkingDir()
gradleBuildScript().appendText("\nrepositories { maven { setUrl(\"$libLocalRepoUri\") } }")
gradleBuildScript().appendText("\nrepositories { maven(\"$libLocalRepoUri\") }")
fun CompiledProject.checkProgramCompilationCommandLine(check: (String) -> Unit) {
output.lineSequence().filter {