File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
integration/src/main/kotlin/kotlinx/benchmark/integration Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org.gradle.api.Project
4
4
import org.gradle.api.artifacts.dsl.*
5
- import java.net.*
5
+ import org.gradle.kotlin.dsl.maven
6
6
7
7
/*
8
8
* 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? {
33
33
*/
34
34
fun addDevRepositoryIfEnabled (repositoryHandler : RepositoryHandler , project : Project ) {
35
35
val devRepoUrl = getKotlinDevRepositoryUrl(project) ? : return
36
- repositoryHandler.maven {
37
- url = URI .create(devRepoUrl)
38
- }
36
+ repositoryHandler.maven(devRepoUrl)
39
37
}
40
38
41
39
/* *
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ benchmark {
26
26
}
27
27
28
28
private val kotlin_repo = System .getProperty(" kotlin_repo_url" )?.let {
29
- " maven { url '$it ' }"
29
+ " maven { url '${it.replace( " \\ " , " \\\\ " )} ' }"
30
30
}.orEmpty()
31
31
32
32
private val plugin_repo_url = System .getProperty(" plugin_repo_url" )!! .let {
33
- " maven { url '$it ' }"
33
+ " maven { url '${it.replace( " \\ " , " \\\\ " )} ' }"
34
34
}
35
35
36
36
private val runtime_repo_url = System .getProperty(" runtime_repo_url" )!! .let {
37
- " maven { url '$it ' }"
37
+ " maven { url '${it.replace( " \\ " , " \\\\ " )} ' }"
38
38
}
39
39
40
40
private val kotlin_language_version = System .getProperty(" kotlin_language_version" )?.let {
You can’t perform that action at this time.
0 commit comments