blob: 2601401d3754a1c6eebd98d6eb5b0fd176c13873 [file] [log] [blame] [edit]
pluginManagement {
apply(from = "../scripts/cache-redirector.settings.gradle.kts")
apply(from = "../scripts/kotlin-bootstrap.settings.gradle.kts")
repositories {
maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies")
mavenCentral()
gradlePluginPortal()
}
}
buildscript {
val buildGradlePluginVersion = extra.get("kotlin.build.gradlePlugin.version")
dependencies {
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:$buildGradlePluginVersion")
}
}
plugins {
// Version here should be also synced with the version in 'libs.versions.toml'
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../../gradle/libs.versions.toml"))
}
}
}
include(":build-cache")
include(":gradle-enterprise")
include(":jvm-toolchain-provisioning")
include(":kotlin-daemon-config")
include(":internal-gradle-setup")
// Unfortunately it is not possible to apply build-cache.settings.gradle.kts as script compilation
// could not then find types from "kotlin-build-gradle-plugin"
// Sync below to the content of settings plugin
val buildProperties = getKotlinBuildPropertiesForSettings(settings)
buildCache {
local {
isEnabled = buildProperties.localBuildCacheEnabled
if (buildProperties.localBuildCacheDirectory != null) {
directory = buildProperties.localBuildCacheDirectory
}
}
val remoteBuildCacheUrl = buildProperties.buildCacheUrl?.trim()
if (!remoteBuildCacheUrl.isNullOrEmpty()) {
remote<HttpBuildCache> {
url = uri(remoteBuildCacheUrl)
isPush = buildProperties.pushToBuildCache
if (buildProperties.buildCacheUser != null &&
buildProperties.buildCachePassword != null
) {
credentials.username = buildProperties.buildCacheUser
credentials.password = buildProperties.buildCachePassword
}
}
}
}