diff --git a/kotlin-native/build-tools/settings.gradle.kts b/kotlin-native/build-tools/settings.gradle.kts index 65d17a5790f..66d6e1eedca 100644 --- a/kotlin-native/build-tools/settings.gradle.kts +++ b/kotlin-native/build-tools/settings.gradle.kts @@ -3,11 +3,13 @@ pluginManagement { rootDir.resolve("../gradle.properties").reader().use(::load) } + val buildKotlinCompilerRepo: String by rootProperties val kotlinCompilerRepo: String by rootProperties - val kotlinVersion by rootProperties + val buildKotlinVersion by rootProperties repositories { maven(kotlinCompilerRepo) + maven(buildKotlinCompilerRepo) maven("https://cache-redirector.jetbrains.com/maven-central") mavenCentral() } @@ -15,7 +17,7 @@ pluginManagement { resolutionStrategy { eachPlugin { if (requested.id.id == "kotlin") { - useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") + useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:$buildKotlinVersion") } } }