Skip to content

Commit 032196e

Browse files
committed
Fix build when kotlin_repo_url contains local path on Windows
1 parent cdca4dd commit 032196e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

buildSrc/src/main/kotlin/CommunityProjectsBuild.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ fun getOverriddenKotlinLanguageVersion(project: Project): KotlinVersion? {
6464
*
6565
* @return an url for a kotlin compiler repository parametrized from command line nor gradle.properties, empty string otherwise
6666
*/
67-
fun getKotlinDevRepositoryUrl(project: Project): URI? {
67+
fun getKotlinDevRepositoryUrl(project: Project): String? {
6868
val url: String? = project.providers.gradleProperty("kotlin_repo_url").orNull
6969
if (url != null) {
7070
LOGGER.info("""Configured Kotlin Compiler repository url: '$url' for project ${project.name}""")
71-
return URI.create(url)
71+
return url
7272
}
7373
return null
7474
}
@@ -78,9 +78,7 @@ fun getKotlinDevRepositoryUrl(project: Project): URI? {
7878
*/
7979
fun addDevRepositoryIfEnabled(rh: RepositoryHandler, project: Project) {
8080
val devRepoUrl = getKotlinDevRepositoryUrl(project) ?: return
81-
rh.maven {
82-
url = devRepoUrl
83-
}
81+
rh.maven(devRepoUrl)
8482
}
8583

8684
/**

0 commit comments

Comments
 (0)