build-settings-logic/settings.gradle.kts (9 lines of code) (raw):
rootProject.name = "build-settings-logic"
apply(from = "src/main/kotlin/kotlin-compiler-server-version-catalog.settings.gradle.kts")
dependencyResolutionManagement {
// For buildSrc we need to declare a custom path to the toml file with versions' catalog.
// But for a root project we can't set `from` inside `versionCatalogs` catalog block for the default `libs` catalog.
// (see https://github.com/gradle/gradle/issues/21328)
// That is why it is not fully moved to the dependencyResolutionManagement block in the settings convention plugin.
versionCatalogs {
getByName("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}