File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ fun getOverriddenKotlinLanguageVersion(project: Project): KotlinVersion? {
64
64
*
65
65
* @return an url for a kotlin compiler repository parametrized from command line nor gradle.properties, empty string otherwise
66
66
*/
67
- fun getKotlinDevRepositoryUrl (project : Project ): URI ? {
67
+ fun getKotlinDevRepositoryUrl (project : Project ): String ? {
68
68
val url: String? = project.providers.gradleProperty(" kotlin_repo_url" ).orNull
69
69
if (url != null ) {
70
70
LOGGER .info(""" Configured Kotlin Compiler repository url: '$url ' for project ${project.name} """ )
71
- return URI .create( url)
71
+ return url
72
72
}
73
73
return null
74
74
}
@@ -78,9 +78,7 @@ fun getKotlinDevRepositoryUrl(project: Project): URI? {
78
78
*/
79
79
fun addDevRepositoryIfEnabled (rh : RepositoryHandler , project : Project ) {
80
80
val devRepoUrl = getKotlinDevRepositoryUrl(project) ? : return
81
- rh.maven {
82
- url = devRepoUrl
83
- }
81
+ rh.maven(devRepoUrl)
84
82
}
85
83
86
84
/* *
You can’t perform that action at this time.
0 commit comments