Skip to content

Commit a19edf9

Browse files
cypressiousfzhinkin
authored andcommitted
Fixes for building and running on Windows
1 parent 2a7d4b7 commit a19edf9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

buildSrc/src/main/kotlin/KotlinCommunity.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.gradle.api.Project
44
import org.gradle.api.artifacts.dsl.*
5-
import java.net.*
5+
import org.gradle.kotlin.dsl.maven
66

77
/*
88
* Functions in this file are responsible for configuring kotlinx-benchmarks build against a custom dev version
@@ -33,9 +33,7 @@ fun getKotlinDevRepositoryUrl(project: Project): String? {
3333
*/
3434
fun addDevRepositoryIfEnabled(repositoryHandler: RepositoryHandler, project: Project) {
3535
val devRepoUrl = getKotlinDevRepositoryUrl(project) ?: return
36-
repositoryHandler.maven {
37-
url = URI.create(devRepoUrl)
38-
}
36+
repositoryHandler.maven(devRepoUrl)
3937
}
4038

4139
/**

integration/src/main/kotlin/kotlinx/benchmark/integration/ProjectBuilder.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ benchmark {
2626
}
2727

2828
private val kotlin_repo = System.getProperty("kotlin_repo_url")?.let {
29-
"maven { url '$it' }"
29+
"maven { url '${it.replace("\\","\\\\")}' }"
3030
}.orEmpty()
3131

3232
private val plugin_repo_url = System.getProperty("plugin_repo_url")!!.let {
33-
"maven { url '$it' }"
33+
"maven { url '${it.replace("\\","\\\\")}' }"
3434
}
3535

3636
private val runtime_repo_url = System.getProperty("runtime_repo_url")!!.let {
37-
"maven { url '$it' }"
37+
"maven { url '${it.replace("\\","\\\\")}' }"
3838
}
3939

4040
private val kotlin_language_version = System.getProperty("kotlin_language_version")?.let {

0 commit comments

Comments
 (0)