diff --git a/native/commonizer/build.gradle.kts b/native/commonizer/build.gradle.kts index 008bba5da8d..c48707140c0 100644 --- a/native/commonizer/build.gradle.kts +++ b/native/commonizer/build.gradle.kts @@ -14,6 +14,13 @@ configurations { } dependencies { + embedded(project(":kotlinx-metadata-klib")) { isTransitive = false } + embedded(project(":kotlinx-metadata")) { isTransitive = false } + + // N.B. The order of "kotlinx-metadata*" dependencies makes sense for runtime classpath + // of the "runCommonizer" task. Please, don't mix them up. + compileOnly(project(":kotlinx-metadata-klib")) { isTransitive = false } + compileOnly(project(":kotlinx-metadata")) { isTransitive = false } compileOnly(project(":compiler:cli-common")) compileOnly(project(":compiler:ir.serialization.common")) compileOnly(project(":compiler:frontend"))