a14d0d148b
Move all the code to apply Kotlin bootstrap into settings script plugin which does following: - configures based either on the repo root 'local.properties' or on the root project gradle properties or on the repo root 'gradle.properties' current type of bootstrap - automatically adds Kotlin bootstrap repository with exclusive content, so bootstrap dependencies will not be by mistake downloaded from other repository - automatically forces all Kotlin plugins applied in the build to use bootstrap version This script should be applied only in project settings.gradle and then it does all the configuration by itself.
22 lines
700 B
Kotlin
22 lines
700 B
Kotlin
pluginManagement {
|
|
apply(from = "../../../../repo/scripts/cache-redirector.settings.gradle.kts")
|
|
apply(from = "../../../../repo/scripts/kotlin-bootstrap.settings.gradle.kts")
|
|
|
|
repositories {
|
|
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies")
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies")
|
|
mavenCentral()
|
|
}
|
|
val buildGradlePluginVersion = extra["kotlin.build.gradlePlugin.version"]
|
|
dependencies {
|
|
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:$buildGradlePluginVersion")
|
|
}
|
|
}
|