From 0fb5934ebd05d0433c9cf2a6ffbdb8269a576b45 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Fri, 28 Apr 2023 20:48:48 +0200 Subject: [PATCH] [213] Add library dependencies to kotlin-native.jar While dependency is added to backend.native, it's than transitively packed to :kotlin-native:shadowJar. Without it running gradle with -Pkotlin.native.useEmbeddableCompilerJar=false fails with e: java.lang.NoClassDefFoundError: org/codehaus/stax2/typed/TypedXMLStreamException KTI-1114 --- kotlin-native/backend.native/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kotlin-native/backend.native/build.gradle b/kotlin-native/backend.native/build.gradle index ac2af37bd07..c99b0eecbe5 100644 --- a/kotlin-native/backend.native/build.gradle +++ b/kotlin-native/backend.native/build.gradle @@ -140,6 +140,8 @@ dependencies { compilerApi(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil")) { setTransitive(false) } compilerApi(commonDependency("org.jetbrains.intellij.deps:log4j")) { setTransitive(false) } compilerApi(commonDependency("org.jetbrains.intellij.deps:jdom")) + compilerApi(commonDependency("com.fasterxml:aalto-xml")) { setTransitive(false) } + compilerApi(commonDependency("org.codehaus.woodstox:stax2-api")) { setTransitive(false) } } kotlin_script_runtime_jar project(":kotlin-script-runtime")