[Build] Apply workaround for bt-api resolution as in b97e82f604
This commit is contained in:
committed by
Space Team
parent
2304b0f12d
commit
db43d8cc8d
@@ -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}")
|
||||
}
|
||||
|
||||
+4
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user