Build: Fix variant resolution ambiguity

This commit is contained in:
Vyacheslav Gerasimov
2020-05-07 14:27:06 +03:00
parent eeb2f7d3d1
commit b4df4e5525
12 changed files with 52 additions and 32 deletions
+4 -1
View File
@@ -2,6 +2,8 @@ import com.moowork.gradle.node.NodeExtension
import com.moowork.gradle.node.npm.NpmTask
import de.undercouch.gradle.tasks.download.Download
import org.gradle.internal.os.OperatingSystem
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages
plugins {
kotlin("jvm")
@@ -18,7 +20,8 @@ node {
val antLauncherJar by configurations.creating
val testJsRuntime by configurations.creating {
attributes {
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements.JAR))
attribute(Usage.USAGE_ATTRIBUTE, objects.named(KotlinUsages.KOTLIN_RUNTIME))
attribute(KotlinPlatformType.attribute, KotlinPlatformType.js)
}
}