Add js compiler disambiguation attribute to fix errors on project import
There were remaining configurations in legacy JS projects with amiguous attributes requesting kotlin-stdlib. They are not used in build, but resolved on import.
This commit is contained in:
committed by
Space Team
parent
e380610ab0
commit
c98377af7b
@@ -5,7 +5,7 @@ apply plugin: 'kotlin-platform-js'
|
||||
configurations {
|
||||
distJs
|
||||
distLibrary
|
||||
[compileClasspath, testCompileClasspath, testRuntimeClasspath].forEach {
|
||||
[compileClasspath, runtimeClasspath, testCompileClasspath, testRuntimeClasspath].forEach {
|
||||
it.attributes {
|
||||
attribute(org.jetbrains.kotlin.gradle.targets.js.KotlinJsCompilerAttribute.jsCompilerAttribute, org.jetbrains.kotlin.gradle.targets.js.KotlinJsCompilerAttribute.legacy)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ configurations {
|
||||
attribute(KotlinJsCompilerAttribute.jsCompilerAttribute, KotlinJsCompilerAttribute.legacy)
|
||||
}
|
||||
}
|
||||
[compileClasspath, testCompileClasspath, testRuntimeClasspath].forEach {
|
||||
[compileClasspath, runtimeClasspath, testCompileClasspath, testRuntimeClasspath].forEach {
|
||||
it.attributes {
|
||||
attribute(org.jetbrains.kotlin.gradle.targets.js.KotlinJsCompilerAttribute.jsCompilerAttribute, org.jetbrains.kotlin.gradle.targets.js.KotlinJsCompilerAttribute.legacy)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user