[Build] Apply workaround for bt-api resolution as in b97e82f604

This commit is contained in:
Alexander.Likhachev
2023-08-17 20:46:24 +02:00
committed by Space Team
parent 2304b0f12d
commit db43d8cc8d
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -7,9 +7,11 @@ buildscript {
// kotlin-stdlib external dependency with local project :kotlin-stdlib in kotlinCompilerClasspath configuration.
// see also configureCompilerClasspath@
val bootstrapCompilerClasspath by configurations.creating
val bootstrapBuildToolsApiClasspath by configurations.creating
dependencies {
bootstrapCompilerClasspath(kotlin("compiler-embeddable", bootstrapKotlinVersion))
bootstrapBuildToolsApiClasspath(kotlin("build-tools-impl", bootstrapKotlinVersion))
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:${kotlinBuildProperties.buildGradlePluginVersion}")
}
@@ -51,6 +51,10 @@ afterEvaluate {
configurations.findByName("kotlinCompilerClasspath")?.let {
dependencies.add(it.name, files(bootstrapCompilerClasspath))
}
val bootstrapBuildToolsApiClasspath by rootProject.buildscript.configurations
configurations.findByName("kotlinBuildToolsApiClasspath")?.let {
dependencies.add(it.name, files(bootstrapBuildToolsApiClasspath))
}
configurations.findByName("kotlinCompilerPluginClasspath")
?.exclude("org.jetbrains.kotlin", "kotlin-scripting-compiler-embeddable")