Skip to content

Fix local fle paths in kotlin_repo_url on Windows #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions buildSrc/src/main/kotlin/KotlinCommunity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.gradle.api.Project
import org.gradle.api.artifacts.dsl.*
import java.net.*
import org.gradle.kotlin.dsl.maven

/*
* Functions in this file are responsible for configuring kotlinx-benchmarks build against a custom dev version
Expand Down Expand Up @@ -33,9 +33,7 @@ fun getKotlinDevRepositoryUrl(project: Project): String? {
*/
fun addDevRepositoryIfEnabled(repositoryHandler: RepositoryHandler, project: Project) {
val devRepoUrl = getKotlinDevRepositoryUrl(project) ?: return
repositoryHandler.maven {
url = URI.create(devRepoUrl)
}
repositoryHandler.maven(devRepoUrl)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ benchmark {
}

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

private val plugin_repo_url = System.getProperty("plugin_repo_url")!!.let {
"maven { url '$it' }"
"maven { url '${it.replace("\\","\\\\")}' }"
}

private val runtime_repo_url = System.getProperty("runtime_repo_url")!!.let {
"maven { url '$it' }"
"maven { url '${it.replace("\\","\\\\")}' }"
}

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