Skip to content

Commit 70d4763

Browse files
committed
directly access kotlin_repo_url
1 parent ea1466b commit 70d4763

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plugin/build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ buildscript {
77
val kotlin_version: String by project
88
val infra_version: String by project
99

10-
val kotlinDevUrl by extra { rootProject.properties["kotlin_repo_url"] }
1110
repositories {
1211
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlinx/maven")
1312
mavenCentral()
14-
kotlinDevUrl?.let {
13+
rootProject.properties["kotlin_repo_url"]?.let {
1514
maven { url = uri(it.toString()) }
1615
}
1716
}
@@ -42,15 +41,13 @@ configure<InfraExtension> {
4241
}
4342
}
4443

45-
46-
4744
logger.info("Using Kotlin ${kotlin_version} for project ${project.name}")
4845

4946
repositories {
5047
mavenCentral()
5148
gradlePluginPortal()
5249

53-
project.properties["kotlinDevUrl"]?.let { url ->
50+
rootProject.properties["kotlin_repo_url"]?.let { url ->
5451
maven { setUrl(url.toString()) }
5552
}
5653
}

0 commit comments

Comments
 (0)