[K/N][build] Fix trove4j dependency for K/N tests
This commit is contained in:
committed by
Space Team
parent
95506ff56e
commit
9cefa346bd
@@ -128,18 +128,22 @@ fun Project.nativeTest(
|
|||||||
val customNativeHome = readFromGradle(KOTLIN_NATIVE_HOME)
|
val customNativeHome = readFromGradle(KOTLIN_NATIVE_HOME)
|
||||||
|
|
||||||
val kotlinNativeCompilerEmbeddable = if (customNativeHome == null)
|
val kotlinNativeCompilerEmbeddable = if (customNativeHome == null)
|
||||||
configurations.detachedConfiguration(dependencies.project(":kotlin-native-compiler-embeddable"))
|
configurations.detachedConfiguration(
|
||||||
.also { dependsOn(it) }
|
dependencies.project(":kotlin-native-compiler-embeddable"),
|
||||||
|
dependencies.module(commonDependency("org.jetbrains.intellij.deps:trove4j"))
|
||||||
|
).also { dependsOn(it) }
|
||||||
else
|
else
|
||||||
null
|
null
|
||||||
|
|
||||||
customDependencies.forEach(::dependsOn)
|
customDependencies.forEach(::dependsOn)
|
||||||
|
|
||||||
lazyClassPath {
|
lazyClassPath {
|
||||||
if (customNativeHome == null)
|
if (customNativeHome == null) {
|
||||||
addAll(kotlinNativeCompilerEmbeddable!!.files)
|
addAll(kotlinNativeCompilerEmbeddable!!.files)
|
||||||
else
|
} else {
|
||||||
this += file(customNativeHome).resolve("konan/lib/kotlin-native-compiler-embeddable.jar")
|
this += file(customNativeHome).resolve("konan/lib/kotlin-native-compiler-embeddable.jar")
|
||||||
|
this += file(customNativeHome).resolve("konan/lib/trove4j.jar")
|
||||||
|
}
|
||||||
|
|
||||||
customDependencies.flatMapTo(this) { it.files }
|
customDependencies.flatMapTo(this) { it.files }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user